List<Integer> targets = Arrays.asList(5, 4, 3, 2, 1);
List<Character> edata = Arrays.asList('a', 'b', 'c', 'd', 'e');
assertEquals(mygraph.numEdges(), 0);
for (int i = 0; i < sources.size(); i++) {
mygraph.addEdge(sources.get(i), targets.get(i), edata.get(i));
}
assertEquals(mygraph.numEdges(), sources.size());
}
@Test