Assert.assertEquals("0", s0.element());
Assert.assertEquals("1", s1.element());
Assert.assertEquals("2", s2.element());
// we must iterate through the edges, because graph.aConnectingEdge
// does not respect the direction of the edge!
EdgeIterator iter = graph.edges();
while (iter.hasNext()) {
Edge e = iter.nextEdge();
if (graph.origin(e) == s2 && graph.destination(e) == s0)
Assert.assertEquals("action0", e.element());
else if (graph.origin(e) == s2 && graph.destination(e) == s1)