Interface CoresAlgo.IResult
- All Superinterfaces:
CoresAlgo.Result<Integer,Integer>
- Enclosing interface:
CoresAlgo
The result of the cores computation for
IntGraph.- Author:
- Barak Ugav
-
Method Summary
Modifier and TypeMethodDescriptioncoreCrust(int core) The vertices in the crust of the given core.coreShell(int core) The vertices in the shell of the given core.coreVertices(int k) The vertices of the given core.intvertexCoreNum(int v) The core number of the given vertex.default intDeprecated.Methods inherited from interface com.jgalgo.alg.cores.CoresAlgo.Result
maxCore
-
Method Details
-
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- ifvis not a valid vertex identifier in the graph
-
vertexCoreNum
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:
vertexCoreNumin interfaceCoresAlgo.Result<Integer,Integer> - Parameters:
v- a vertex in the graph- Returns:
- the core number of the vertex
-
coreVertices
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
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
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
-
vertexCoreNum(int)instead to avoid un/boxing.