()
| 140 | } |
| 141 | |
| 142 | @Test |
| 143 | public void testIsDirectedRoot() { |
| 144 | // Not roots: 2, 3, 4, 5 |
| 145 | for(int i = 2; i < 5; i++) |
| 146 | assertFalse(directedGraph.getVertex(i).isRoot()); |
| 147 | // Roots: 1, 6 |
| 148 | assertTrue(directedGraph.getVertex(1).isRoot()); |
| 149 | assertTrue(directedGraph.getVertex(6).isRoot()); |
| 150 | } |
| 151 | |
| 152 | @Test |
| 153 | public void testGetAllRoots() { |