digraph finite_automata { /* graph properties */ graph [rankdir=LR label="Sipser pg 85 1.12(a)"]; node [style=filled fillcolor="#E0E0E0"]; /* states */ 1 [shape=doublecircle]; 2 [shape=circle]; start [style=invis]; /* transitions */ start -> 1 [label="a"]; 1 -> 1 [label="a"]; 1 -> 2 [label="a,b"]; 2 -> 1 [label="b"] }