digraph { rankdir=LR; s0 [ label = 0
(∗)>, shape = "circle" ]; s1 [ label = 1
(x)>, shape = "circle" ]; s2 [ label = 2
(x)>, shape = "circle" ]; s3 [ label = 3
(x)>, shape = "doublecircle" ]; s4 [ label = 4
(x)>, shape = "doublecircle" ]; s2 -> s2 [ label = "1" ]; s2 -> s4 [ label = "1" ]; s3 -> s2 [ label = "ε" ]; s3 -> s4 [ label = "0" ]; s0 -> s1 [ label = "0 «fork»" ]; s4 -> s3 [ label = "0" ]; s1 -> s2 [ label = "0" ]; s1 -> s3 [ label = "ε" ]; }