code: public static <N, E> List<List<N>> collectSCCs(Graph<N, E> graph) {
          return SCCs.collectSCCs(graph);
      }
docs: Collects all strongly-connected components in a graph. The SCCs are returned as a list of lists.
  <p>
  Tarjan's algorithm is used for realizing the SCC search.
  
  @param graph
  the graph
  
  @return a list of all SCCs, each represented as a list of its nodes
  
  @see TarjanSCCVisitor
  @see SCCs