Dot and neato are two graph layout tools that share an almost identical graph format. Dot makes layouts of directed graphs whereas neato is for undirected graphs. The format has three kinds of items: graphs, nodes, and edges. The top-level graph can be structured by introducing subgraphs, which define a subset of nodes and edges. Nodes are identified by their name. Edges are created when nodes are joined with an edge operator. Graphs, nodes, and edges can be attributed. Attributes are name-value pairs of character strings. It is also possible to define new default values for edge and node attributes (this can be seen as a primitive form of attribute inheritance). The format has a large number of predefined attributes (e.g., node shape, line style, color, and layout parameters such as weights). Application specific attributes, which are ignored by dot, can be attached as well.

The following gives a code example that contains two nodes (called 'one' and 'two') that are connected with an edge. The edge is colored red.

  digraph G {
    one -> two [ color= red ]
  }

(Quoted from ExchangeFormatBibliography)

Resources:


CategoryDataFormat | Contributions by HolgerKienle

Revision: r1.2 - 31 Oct 2001 - 22:41 - EelcoVisser
Transform > DotLanguage
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback