@graphty/algorithms / index / groupsById
Function: groupsById() ​
groupsById(
result,s):NodeId[][]
Defined in: indexed/by-id.ts:30
The groups of a partition (components, communities, clusters) as arrays of node ids.
Parameters ​
result ​
A partition result with groups(), such as a LabelResult
s ​
GraphSnapshot
The snapshot the partition was computed on
Returns ​
NodeId[][]
One array of node ids per group, in the order of groups()