Validates whether the number of nodes in all components is equal to the number of nodes in the given graph.
(Graph<N> graph, List<List<N>> components)
| 132 | * equal to the number of nodes in the given graph. |
| 133 | */ |
| 134 | private void validate(Graph<N> graph, List<List<N>> components) { |
| 135 | assert graph.getNumberOfNodes() == |
| 136 | components.stream().mapToInt(List::size).sum(); |
| 137 | } |
| 138 | } |
no test coverage detected