Class KEdgeConnectedComponentsAlgoAbstract

    • Constructor Detail

      • KEdgeConnectedComponentsAlgoAbstract

        public KEdgeConnectedComponentsAlgoAbstract()
        Default constructor.
    • Method Detail

      • computeKEdgeConnectedComponents

        public <V,​E> VertexPartition<V,​E> computeKEdgeConnectedComponents​(Graph<V,​E> g,
                                                                                      int k)
        Description copied from interface: KEdgeConnectedComponentsAlgo
        Compute the k-edge connected components of a graph.

        The algorithm will return a VertexPartition object that represents the k-edge connected components of the graph. The partition will contain exactly one block for each k-edge connected component. The vertices of each block are the vertices of the component.

        If g is an IntGraph, a IVertexPartition object will be returned.

        Specified by:
        computeKEdgeConnectedComponents in interface KEdgeConnectedComponentsAlgo
        Type Parameters:
        V - the vertices type
        E - the edges type
        Parameters:
        g - a graph
        k - the \(k\) parameter, which define the number of edges that must be removed to disconnect each returned connected component
        Returns:
        a VertexPartition object that represents the k-edge connected components of the graph