@graphty/algorithms / index / getKCore
Function: getKCore() ​
getKCore(
graph,k):Set<string>
Defined in: clustering/k-core.ts:223
Extract the k-core subgraph Returns nodes that belong to k-core or higher
Parameters ​
graph ​
Undirected graph
k ​
number
Core number
Returns ​
Set<string>
Set of nodes in k-core or higher