DOT (.dot, .gv) Graph Format - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/DOT

DOT (.dot, .gv) Graph Format

DOT file format

 

Description

Examples

Description

• 

DOT is a simple text-based file format for storing a single undirected or directed graph.

• 

It also allows the application of attributes to nodes, edges and graphs.

• 

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

withGraphTheory:

Import a DOT file encoding a directed graph.

GImportexample/digraph.dot,base=datadir

GGraph 1: a directed unweighted graph with 11 vertices and 12 arc(s)

(1)

DrawGraphG,style=spring

Export the Desargues graph to a DOT file in the home directory of the current user.

DGGraphTheory:-SpecialGraphs:-DesarguesGraph

DGGraph 2: an undirected unweighted graph with 20 vertices and 30 edge(s)

(2)

Exportdesargues.dot,DG,base=homedir

370

(3)

See Also

Formats

GraphTheory