Syntax

The following is an example of a graph

TODO

"Print" the graph

dot -Tpng yourfile.dot > yourfile.png

Or

dot -Teps yourfile.dot > yourfile.eps

Styling

Changing default attributes

You can use the following statements:

node [attr=val, attr=val...]
edge [attr=val, attr=val...]
graph [attr=val, attr=val...]

Inside a graph definition. This is handy if you want to change, say, the default shape from oval to box, or stuff like that.

You can also set the attributes of the graph you are inside, by assigning values to them.

Available node shapes

Attribute shape. Possible values: box, polygon, ellipse, circle, point, egg, triangle, plaintext, rectangle, square, note, tab, folder. There are many other valid ones, see http://www.graphviz.org/doc/info/shapes.html

Useful attributes

fontsize, which receives its value in points.