Class StronglyConnectedComponentsFinder


  • public class StronglyConnectedComponentsFinder
    extends Object
    • Method Detail

      • findComponents

        public static Set<Set<Edge>> findComponents​(Slicing graph)
        Find the edges of all strongly connected components (SCC) of the given directed graph. For a cycle-free graph this method returns an empty set.
        Parameters:
        graph - the graph
        Returns:
        a set of all SCCs, each SCC represented as a set of Edges