Package com.jgalgo.alg
Interface CoresAlgo.IResult
-
- All Superinterfaces:
CoresAlgo.Result<Integer,Integer>
- Enclosing interface:
- CoresAlgo
public static interface CoresAlgo.IResult extends CoresAlgo.Result<Integer,Integer>
The result of the cores computation forIntGraph
.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description IntSet
coreCrust(int core)
The vertices in the crust of the given core.IntSet
coreShell(int core)
The vertices in the shell of the given core.IntSet
coreVertices(int k)
The vertices of the given core.int
vertexCoreNum(int v)
The core number of the given vertex.default int
vertexCoreNum(Integer v)
Deprecated.Please usevertexCoreNum(int)
instead to avoid un/boxing.-
Methods inherited from interface com.jgalgo.alg.CoresAlgo.Result
maxCore
-
-
-
-
Method Detail
-
vertexCoreNum
int vertexCoreNum(int v)
The core number of the given vertex.The core number of a vertex is the highest order of a core that contains this vertex.
- Parameters:
v
- a vertex in the graph- Returns:
- the core number of the vertex
- Throws:
NoSuchVertexException
- ifv
is not a valid vertex identifier in the graph
-
vertexCoreNum
@Deprecated default int vertexCoreNum(Integer v)
Deprecated.Please usevertexCoreNum(int)
instead to avoid un/boxing.The core number of the given vertex.The core number of a vertex is the highest order of a core that contains this vertex.
- Specified by:
vertexCoreNum
in interfaceCoresAlgo.Result<Integer,Integer>
- Parameters:
v
- a vertex in the graph- Returns:
- the core number of the vertex
-
coreVertices
IntSet coreVertices(int k)
Description copied from interface:CoresAlgo.Result
The vertices of the given core.A vertex is in the core if its core number is at least the given core number.
- Specified by:
coreVertices
in interfaceCoresAlgo.Result<Integer,Integer>
- Parameters:
k
- the core number (order)- Returns:
- the vertices of the core
-
coreShell
IntSet coreShell(int core)
Description copied from interface:CoresAlgo.Result
The vertices in the shell of the given core.A vertex is in the shell of the core if its core number is exactly the given core number. Namely it is in the k core but not in the (k+1) core.
- Specified by:
coreShell
in interfaceCoresAlgo.Result<Integer,Integer>
- Parameters:
core
- the core number (order)- Returns:
- the vertices in the shell of the core
-
coreCrust
IntSet coreCrust(int core)
Description copied from interface:CoresAlgo.Result
The vertices in the crust of the given core.A vertex is in the crust of the core if its core number is less than the given core. The crust is the complement of the core vertices set.
- Specified by:
coreCrust
in interfaceCoresAlgo.Result<Integer,Integer>
- Parameters:
core
- the core number (order)- Returns:
- the vertices in the crust of the core
-
-