| graph.addEdge(6, 3);
graph.addEdge(0, 1);
graph.addEdge(0, 4);
graph.addEdge(0, 3);
graph.addEdge(3, 2);
graph.addEdge(5, 3);
Assert.assertEquals("wrong number of incoming edges", 3, graph.inDeg(3));
graph.removeEdge(6, 3);
Assert.assertEquals("wrong number of leaves", 4,
graph.getNumberOfLeaves());
Assert.assertEquals("wrong maximal out degree", 3, graph.getMaxOutDeg());
|