Sparse6 (.g6) Graph Format
Sparse6 file format
Sparse6 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 Sparse6 file encoding the Petersen graph.
petersen ≔ FileTools:-JoinPath⁡example/petersen.s6,base=datadir:
C:\Program Files\Maple 2016\data\example\petersen.s6
G ≔ Import⁡petersen
G ≔ Graph 1: an undirected unweighted graph with 10 vertices and 15 edge(s)
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.