Package com.jgalgo.alg.connect
Class KVertexConnectedComponentsAlgoAbstract
java.lang.Object
com.jgalgo.alg.connect.KVertexConnectedComponentsAlgoAbstract
- All Implemented Interfaces:
KVertexConnectedComponentsAlgo
- Direct Known Subclasses:
KVertexConnectedComponentsWhiteMoody
public abstract class KVertexConnectedComponentsAlgoAbstract
extends Object
implements KVertexConnectedComponentsAlgo
Abstract class for k-vertex connected components algorithms.
The class implements the interface by solving the problem on the index graph and then maps the results back to the original graph. The implementation for index graphs is abstract and left to the subclasses.
- Author:
- Barak Ugav
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindKVertexConnectedComponents
(Graph<V, E> g, int k) Find all k-vertex connected components in a graph.
-
Constructor Details
-
KVertexConnectedComponentsAlgoAbstract
public KVertexConnectedComponentsAlgoAbstract()Default constructor.
-
-
Method Details
-
findKVertexConnectedComponents
Description copied from interface:KVertexConnectedComponentsAlgo
Find all k-vertex connected components in a graph.If
g
is anIntGraph
, the returned list will be a list ofIntSet
.- Specified by:
findKVertexConnectedComponents
in interfaceKVertexConnectedComponentsAlgo
- Type Parameters:
V
- the vertices typeE
- the edges type- Parameters:
g
- a graphk
- the k value, non negative- Returns:
- a list of the k-connected components
-