digraph { 5 [ label="coin (5)",color = "red"] 6 [ label="getCoffee (6)",color = "red"] 7 [ label="getTea (7)",color = "red"] 8 [ label="coffee (8)",color = "green"] 9 [ label="tea (9)",color = "green"] 5 -> 9 [] 5 -> 8 [] 6 -> 8 [] 7 -> 9 [] }