1) write graph code
digraph g{
Opened[label="1\nOpened\nE: open door"];
Closed[label="2\nClosed\nE: closed door"];
node[shape=plaintext];
Opened -> close_door[arrowhead=none];
close_door -> Closed;
Opened -> open_door[dir=back];
open_door -> Closed[arrowhead=none];
}
2) generate graph
dot -Tjpg -ograph.jpg graph.dot
3) view graph
dot -Tjpg -ograph.jpg graph.dot
3) view graph
You can easily store the source code to the graph in version control.
Don't forget to also store the instructions to rebuild it.