File: automata.dot

package info (click to toggle)
dot2tex 2.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 968 kB
  • ctags: 337
  • sloc: python: 3,057; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 871 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
:Title: State machine
:Tags: PGF, Preproc

This state machine is `based on an example`_ from the PGF and TikZ manual.
The original looks much better. For small graphs you usually
get better looking results by drawing them manually. 

.. _based on an example: http://www.fauskes.net/pgftikzexamples/state-machine/

Generated with::

    $ dot2tex -tmath --autosize --crop automata.dot > automata.tex
    
    
*/
digraph automata {
    rankdir=LR;
    node [shape=circle];
    edge [style=">=stealth',shorten >=1pt"];
    q_a [shape=doublecircle];
    q_a -> q_b [label="0,1,L"];
    q_b -> q_b [label="1,1,L"];
    q_b -> q_c [label="0,1,L"];
    q_c -> q_e [label="1,0,R"];
    q_e -> q_a [label="1,0,R"];
    q_a -> q_c [label="1,1,R"];
    q_c -> q_d [label="0,1,L"];
    q_d -> q_d [label="1,1,R"];
    q_d -> q_a [label="0,1,R"];
}