Sparse6 (.g6) Graph Format - Maple Help

Online Help

All Products    Maple    MapleSim


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

Sparse6 (.g6) Graph Format

Sparse6 file format

 

Description

Examples

Description

• 

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.

Examples

Import a Sparse6 file encoding the Petersen graph.

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

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

(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,Graph6

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