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 IntSetcoreCrust(int core)The vertices in the crust of the given core.IntSetcoreShell(int core)The vertices in the shell of the given core.IntSetcoreVertices(int k)The vertices of the given core.intvertexCoreNum(int v)The core number of the given vertex.default intvertexCoreNum(Integer v)Deprecated.-
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
-
vertexCoreNum
@Deprecated default int vertexCoreNum(Integer v)
Deprecated.Description copied from interface:CoresAlgo.ResultThe 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:
vertexCoreNumin 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.ResultThe vertices of the given core.A vertex is in the core if its core number is at least the given core number.
- Specified by:
coreVerticesin 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.ResultThe 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:
coreShellin 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.ResultThe 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:
coreCrustin interfaceCoresAlgo.Result<Integer,Integer>- Parameters:
core- the core number (order)- Returns:
- the vertices in the crust of the core
-
-