GDF (.gdf) Graph Format
GDF file format
Description
Examples
GDF is a simple text-based file format for storing a graph first used by the GUESS graph visualization software.
It also allows the application of labels to vertices and edges.
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 GDF file encoding a graph.
G≔Import⁡example/mirzakhani.gdf,base=datadir
G≔Graph 1: an undirected graph with 63 vertices and 183 edge(s)
GraphTheory:-DrawGraph⁡G,style=spring
Export the Dyck graph to a GDF file in the home directory of the current user.
DG≔GraphTheory:-SpecialGraphs:-DyckGraph⁡
DG≔Graph 2: an undirected graph with 32 vertices and 48 edge(s)
Export⁡dyck.gdf,DG,base=homedir
437
See Also
Formats
GraphTheory
Download Help Document