cheat sheets.

$ cheat dot
Undirected graphs

graph graphname {
  a -- b -- c;
  b -- d;
}

-------------------------

Directed graphs

digraph graphname {
  a -> b -> c;
  b -> d;
}

-------------------------

Attributes

graph graphname {
  // The label attribute can be used to change the label of a node
  a [label="Foo"];
  // Here, the node shape is changed.
  b [shape=box];
  // These edges both have different line properties
  a -- b -- c [color=blue];
  b -- d [style=dotted];
}

More attributes:
http://www.graphviz.org/doc/schema/attributes.xml

-------------------------

Comments

 // This is a single line comment.
 /* This is a
    multiple line
    comment. */
 # Lines like this are also ignored.
Version 2, updated 580 days ago.
. o 0 ( | previous | history | revert to | current | diff )
( add new | see all )