}
@Test
public void testMulti() {
MultiGraph graph = new MultiGraph("g");
MultiNode A = graph.addNode("A");
MultiNode B = graph.addNode("B");
graph.addEdge("AB1", "A", "B");
graph.addEdge("AB2", "A", "B");
assertEquals(2, A.getDegree());
assertEquals(2, B.getDegree());
// loop edges
graph.addEdge("AA1", "A", "B");
graph.addEdge("AA2", "A", "B", true);