DOT (graph description language)
Appearance
DOT is a plain text graph description language. It's an intuitive and simple way of describing graphs. Dotty is the tool that reads DOT scripts and renders the graphs.
A simple graph example
Following is an example script that describes the bonding structure of an ethane molecule.
graph ethane {
C_0--H_0 [type=s];
C_0--H_1 [type=s];
C_0--H_2 [type=s];
C_0--C_1 [type=s];
C_1--H_3 [type=s];
C_1--H_4 [type=s];
C_1--H_5 [type=s];
}