Graph6 (.g6) Graph Format - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/Graph6

Graph6 (.g6) Graph Format

Graph6 file format

 

Description

Examples

Description

• 

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.

Examples

Import a Graph6 file encoding the Petersen graph.

petersenFileTools:-JoinPathexample/petersen.g6,base=datadir

C:\Program Files\Maple 2016\data\example\petersen.g6

(1)

GImportpetersen

G:=Graph 1: an undirected unweighted graph with 10 vertices and 15 edge(s)

(2)

GraphTheory:-DrawGraphG,style=spring

See Also

Formats

Formats,Sparse6

GraphTheory

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam