Interface BiConnectedComponentsAlgo.IResult
-
- All Superinterfaces:
BiConnectedComponentsAlgo.Result<Integer,Integer>
- Enclosing interface:
- BiConnectedComponentsAlgo
public static interface BiConnectedComponentsAlgo.IResult extends BiConnectedComponentsAlgo.Result<Integer,Integer>
A result object of aBiConnectedComponentsAlgo
computation forIntGraph
.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description IntSet
getBiCcEdges(int biccIdx)
Get the edges contained in a single bi-connected component.IntSet
getBiCcVertices(int biccIdx)
Get the vertices contained in a single bi-connected component.IntSet
getCutVertices()
Get all the cut vertices in the graph.IntSet
getVertexBiCcs(int vertex)
Get the bi-connected components a vertex is contained in.default IntSet
getVertexBiCcs(Integer vertex)
Deprecated.Please usegetVertexBiCcs(int)
instead to avoid un/boxing.boolean
isCutVertex(int vertex)
Check whether a vertex is a cut-vertex.default boolean
isCutVertex(Integer vertex)
Deprecated.Please useisCutVertex(int)
instead to avoid un/boxing.-
Methods inherited from interface com.jgalgo.alg.BiConnectedComponentsAlgo.Result
getBlockGraph, getNumberOfBiCcs
-
-
-
-
Method Detail
-
getVertexBiCcs
IntSet getVertexBiCcs(int vertex)
Get the bi-connected components a vertex is contained in.- Parameters:
vertex
- a vertex in the graph- Returns:
- the labels of the bi-connected components containing the vertex
- Throws:
NoSuchVertexException
- ifvertex
is not a valid vertex identifier in the graph
-
getVertexBiCcs
@Deprecated default IntSet getVertexBiCcs(Integer vertex)
Deprecated.Please usegetVertexBiCcs(int)
instead to avoid un/boxing.Get the bi-connected components a vertex is contained in.- Specified by:
getVertexBiCcs
in interfaceBiConnectedComponentsAlgo.Result<Integer,Integer>
- Parameters:
vertex
- a vertex in the graph- Returns:
- the labels of the bi-connected components containing the vertex
-
getBiCcVertices
IntSet getBiCcVertices(int biccIdx)
Description copied from interface:BiConnectedComponentsAlgo.Result
Get the vertices contained in a single bi-connected component.- Specified by:
getBiCcVertices
in interfaceBiConnectedComponentsAlgo.Result<Integer,Integer>
- Parameters:
biccIdx
- an index of a bi-connected component- Returns:
- all the vertices that are contained in the bi-connected component
-
getBiCcEdges
IntSet getBiCcEdges(int biccIdx)
Description copied from interface:BiConnectedComponentsAlgo.Result
Get the edges contained in a single bi-connected component.An edge \((u,v)\) is said to bi contained in a bi-connected component \(B\) if both \(u\) and \(v\) are in \(B\).
- Specified by:
getBiCcEdges
in interfaceBiConnectedComponentsAlgo.Result<Integer,Integer>
- Parameters:
biccIdx
- an index of a bi-connected component- Returns:
- all the edges that are contained in the bi-connected component
-
isCutVertex
boolean isCutVertex(int vertex)
Check whether a vertex is a cut-vertex.A cut vertex is a vertex whose removal disconnects the graph. In the context of bi-connected components, a cut vertex is also a vertex that belongs to more than one bi-connected component. These vertices are also called articulation points, or separating vertices.
- Parameters:
vertex
- a vertex in the graph- Returns:
true
ifvertex
is a cut-vertex,false
otherwise
-
isCutVertex
@Deprecated default boolean isCutVertex(Integer vertex)
Deprecated.Please useisCutVertex(int)
instead to avoid un/boxing.Check whether a vertex is a cut-vertex.A cut vertex is a vertex whose removal disconnects the graph. In the context of bi-connected components, a cut vertex is also a vertex that belongs to more than one bi-connected component. These vertices are also called articulation points, or separating vertices.
- Specified by:
isCutVertex
in interfaceBiConnectedComponentsAlgo.Result<Integer,Integer>
- Parameters:
vertex
- a vertex in the graph- Returns:
true
ifvertex
is a cut-vertex,false
otherwise
-
getCutVertices
IntSet getCutVertices()
Description copied from interface:BiConnectedComponentsAlgo.Result
Get all the cut vertices in the graph.A cut vertex is a vertex whose removal disconnects the graph. In the context of bi-connected components, a cut vertex is also a vertex that belongs to more than one bi-connected component. These vertices are also called articulation points, or separating vertices.
- Specified by:
getCutVertices
in interfaceBiConnectedComponentsAlgo.Result<Integer,Integer>
- Returns:
- all the cut vertices in the graph
-
-