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