Formats/GDF - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Formats/GDF

GDF (.gdf) Graph Format

GDF file format

 

Description

Examples

Description

• 

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.

Examples

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 edges

(1)
> 

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 edges

(2)
> 

Export⁡dyck.gdf,DG,base=homedir

437

(3)

See Also

Formats

GraphTheory