S = graphToString(E, n)
S = graphToString I
S = graphToString G
S = graphToString T
This method converts various ways of representing a graph into nauty's Graph6 string format. Note that if the Ideal (or MonomialIdeal) passed to the method is not squarefree and monomial, then the method may have unknown and possibly undesired results.
In this example, all graphs are the 5cycle.





We note that if the input is a string, then the output is simply that string returned, regardless of format or correctness.
The object graphToString is a method function.