Macaulay2 » Documentation
Packages » Nauty :: graph6ToSparse6
next | previous | forward | backward | up | index | toc

graph6ToSparse6 -- converts a Graph6 string to a Sparse6 string

Synopsis

Description

This method converts a graph stored in nauty's Graph6 format to a graph stored in nauty's Sparse6 format. For graphs with very few edges, the Sparse6 format can use dramatically less space. However, for graphs with many edges, the Sparse6 format can increase the storage requirements.

i1 : graph6ToSparse6 "Dhc"

o1 = :DaY_~
i2 : graph6ToSparse6 "M????????????????"

o2 = :M

See also

Ways to use graph6ToSparse6 :

For the programmer

The object graph6ToSparse6 is a method function.