GRAPH BEGIN
a 3 1 b e
b 2 2 c
c 1 1 d
d 5
e 2
GRAPH END
a d
a c
GRAPH BEGIN
e 1 2 f
e 1 3 g
f 3
g 3
h 5 4 g f
GRAPH END
h e
