public void testRemoveNodeAndNeighbors() {
System.out.println("removeNodeAndNeighbors");
WeightedGraph graph = new WeightedGraph(10);
graph.addEdge(3, 4, 7f);
graph.addEdge(1, 5, 7f);
graph.addEdge(2, 4, 7f);
assertTrue(graph.removeNodeAndNeighbors(4));
assertEquals(graph.getNoOfEdges(), 1);
assertTrue(graph.getOneNodeWithAnEdge() != -1);