Graphlet - Maple Help

Online Help

All Products    Maple    MapleSim


Graphlet (.gml) Graph Format

Graphlet file format

 

Description

Examples

Description

• 

Graphlet GML (Graph Modelling Language) is a text-based file format for storing a single directed or undirected graph.

• 

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 Graphlet file encoding the Petersen graph.

PetersenImportexample/petersen.gml,base=datadir

PetersenGraph 1: an undirected unweighted graph with 10 vertices and 15 edge(s)

(1)

GraphTheory:-DrawGraphPetersen

Import a Graphlet file encoding the constellation Draco.

DracoImportexample/draco.gml,base=datadir

DracoGraph 2: an undirected unweighted graph with 14 vertices and 14 edge(s)

(2)

GraphTheory:-DrawGraphDraco

Export the Herschel graph to a Graphlet file in the home directory of the current user.

HerschelGGraphTheory:-SpecialGraphs:-HerschelGraph

HerschelGGraph 3: an undirected unweighted graph with 11 vertices and 18 edge(s)

(3)

Exportherschel.gml,HerschelG,base=homedir

1225

(4)

See Also

Formats

GraphTheory