digraph { rankdir=LR in [shape=point style=invis] 0 [color=yellow label="0"] 1 [label="1"] 2 [color=green shape=doublecircle label="2\np=0\nac=0"] 3 [label="3"] 4 [label="4"] 5 [label="5"] 6 [label="6"] 7 [label="7"] 8 [color=green shape=doublecircle label="8\np=1\nac=1"] 1 -> 2 [label="a"] 4 -> 5 [label="a"] 6 -> 7 [label="b"] 0 -> 1 [label="ε"] 0 -> 3 [label="ε"] 3 -> 4 [label="ε"] 3 -> 6 [label="ε"] 5 -> 8 [label="ε"] 7 -> 8 [label="ε"] in -> 0 }