GraphML - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GraphML (.graphml) Graph Format

GraphML file format

 

Description

Examples

References

Description

• 

GraphML is an XML-based file format for storing a single undirected or directed 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 GraphML file encoding the Petersen graph.

PetersenImportexample/petersen.graphml,base=datadir

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

(1)

GraphTheory:-DrawGraphPetersen,style=spring

Export the Clebsch graph to a GraphML file in the home directory of the current user.

CGGraphTheory:-SpecialGraphs:-ClebschGraph

CGGraph 2: an undirected graph with 16 vertices and 40 edge(s)

(2)

Exportclebsch.graphml,CG,base=homedir

4351

(3)

References

  

GraphML Specification, graphdrawing.org.

See Also

Formats

GraphTheory