1/*
2:Title: State machine
3:Tags: PGF, Preproc
4
5This state machine is `based on an example`_ from the PGF and TikZ manual.
6The original looks much better. For small graphs you usually
7get better looking results by drawing them manually.
8
9.. _based on an example: http://www.fauskes.net/pgftikzexamples/state-machine/
10
11Generated with::
12
13    $ dot2tex -tmath --autosize --crop automata.dot > automata.tex
14
15
16*/
17digraph automata {
18    rankdir=LR;
19    node [shape=circle];
20    edge [style=">=stealth',shorten >=1pt"];
21    q_a [shape=doublecircle];
22    q_a -> q_b [label="0,1,L"];
23    q_b -> q_b [label="1,1,L"];
24    q_b -> q_c [label="0,1,L"];
25    q_c -> q_e [label="1,0,R"];
26    q_e -> q_a [label="1,0,R"];
27    q_a -> q_c [label="1,1,R"];
28    q_c -> q_d [label="0,1,L"];
29    q_d -> q_d [label="1,1,R"];
30    q_d -> q_a [label="0,1,R"];
31}
32