Skip to content

Instantly share code, notes, and snippets.

@bripkens
Created September 23, 2012 09:10
Show Gist options
  • Save bripkens/3769436 to your computer and use it in GitHub Desktop.
Save bripkens/3769436 to your computer and use it in GitHub Desktop.
DOT file for finite state machine diagrams.
digraph finite_state_machine {
rankdir=LR;
node [shape = doublecircle]; 1;
node [shape = circle] 0;
node [shape = plaintext, label = ""]; start;
start -> 0 [ label = "start"];
0 -> 1 [ label = "[1-9]" ];
1 -> 1 [ label = "[0-9]" ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment