@return the list of the strongly-connected components, but only those that are true components, i.e. components which have more than one element or consists of one node that has itself as a successor
()
| 56 | * or consists of one node that has itself as a successor |
| 57 | */ |
| 58 | public List<List<N>> getTrueComponents() { |
| 59 | return trueComponentList; |
| 60 | } |
| 61 | |
| 62 | private void compute(Graph<N> graph) { |
| 63 | // use iterative (non-recursive) algorithm to avoid stack overflow |
no outgoing calls