Iterator<EdgeType> iter = list.iterator();
testEdges.add(myGraph.lvid(3));
testEdges.add(myGraph.lvid(6));
testEdges.add(myGraph.lvid(1));
while (iter.hasNext()) {
EdgeType e = iter.next();
assertEquals(e.source(), myGraph.lvid(0));
assertTrue(testEdges.contains(e.target()));
}
// iterate out edges of 1: null
list = myGraph.outEdges(myGraph.lvid(1));
assertTrue(list.isEmpty());
// iterate in edges of 3: 0, 2
list = myGraph.inEdges(myGraph.lvid(3));
testEdges.clear();
testEdges.add(myGraph.lvid(0));
testEdges.add(myGraph.lvid(2));
iter = list.iterator();
while (iter.hasNext()) {
EdgeType e = iter.next();
assertEquals(e.target(), myGraph.lvid(3));
assertTrue(testEdges.contains(e.source()));
}
// iterate in edges of 2: null
list = myGraph.inEdges(myGraph.lvid(2));
assertTrue(list.isEmpty());
}