GEXF (.gexf) Graph Format
GEXF file format
Description
Examples
References
GEXF (Graph Exchange XML Format) 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 GEXF file encoding the Petersen graph.
Petersen≔Import⁡example/petersen.gexf,base=datadir
Petersen≔Graph 1: an undirected graph with 10 vertices and 15 edge(s)
GraphTheory:-DrawGraph⁡Petersen
Export a Kneser graph to a GEXF file in the home directory of the current user.
KG≔GraphTheory:-SpecialGraphs:-KneserGraph⁡3,2
KG≔Graph 2: an undirected graph with 3 vertices and 0 edge(s)
Export⁡kneser.gexf,KG,base=homedir
524
GEXF Format, www.gexf.net
See Also
Formats
GraphTheory
Download Help Document