Graph6 (.g6) Graph Format
Graph6 file format
Description
Examples
References
Graph6 is a text-based file format for storing one or more undirected graphs.
The GraphTheory[ImportGraph] and GraphTheory[ExportGraph] commands can read from and write to this format.
The general-purpose commands Import and Export also support this format.
Import a Graph6 file encoding the Petersen graph.
Petersen≔Import⁡example/petersen.g6,base=datadir
Petersen≔Graph 1: an undirected graph with 10 vertices and 15 edge(s)
GraphTheory:-DrawGraph⁡Petersen,style=spring
Export the Clebsch graph to a Graph6 file in the home directory of the current user.
CG≔GraphTheory:-SpecialGraphs:-ClebschGraph⁡
CG≔Graph 2: an undirected graph with 16 vertices and 40 edge(s)
Export⁡clebsch.g6,CG,base=homedir
22
McKay, B.D. and Piperno, A., Practical Graph Isomorphism, II, Journal of Symbolic Computation, 60 (2014), pp. 94-112, doi:10.1016/j.jsc.2013.09.003
See Also
Formats
Formats,Digraph6
Formats,Sparse6
GraphTheory
Download Help Document