DOT (.dot, .gv) Graph Format
DOT file format
Description
Examples
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.
with⁡GraphTheory:
Import a DOT file encoding a directed graph.
G≔Import⁡example/digraph.dot,base=datadir
G≔Graph 1: a directed graph with 11 vertices and 12 arc(s)
DrawGraph⁡G,style=spring
Export the Desargues graph to a DOT file in the home directory of the current user.
DG≔GraphTheory:-SpecialGraphs:-DesarguesGraph⁡
DG≔Graph 2: an undirected graph with 20 vertices and 30 edge(s)
Export⁡desargues.dot,DG,base=homedir
370
See Also
Formats
GraphTheory
Download Help Document