Interface KVertexConnectedComponentsAlgo

    • Method Detail

      • findKVertexConnectedComponents

        <V,​E> List<Set<V>> findKVertexConnectedComponents​(Graph<V,​E> g,
                                                                int k)
        Find all k-vertex connected components in a graph.

        If g is an IntGraph, the returned list will be a list of IntSet.

        Type Parameters:
        V - the vertices type
        E - the edges type
        Parameters:
        g - a graph
        k - the k value, non negative
        Returns:
        a list of the k-connected components
        Throws:
        IllegalArgumentException - if k is negative