GraphML (.graphml) Graph Format
GraphML file format
Description
Examples
References
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.
Import a GraphML file encoding the Petersen graph.
Petersen≔Import⁡example/petersen.graphml,base=datadir
Petersen≔Graph 1: an undirected graph with 10 vertices and 15 edge(s)
GraphTheory:-DrawGraph⁡Petersen,style=spring
Export the Clebsch graph to a GraphML file in the home directory of the current user.
CG≔GraphTheory:-SpecialGraphs:-ClebschGraph⁡
CG≔Graph 2: an undirected graph with 16 vertices and 40 edge(s)
Export⁡clebsch.graphml,CG,base=homedir
4351
GraphML Specification, graphdrawing.org.
See Also
Formats
GraphTheory
Download Help Document