Skip to content

@eightkk/vue-weave / core / graphCommunityGroups

Function: graphCommunityGroups() ​

graphCommunityGroups(communities, options?): GraphGroup[]

Defined in: src/core/graphAnalysis.ts:466

Turn communities into NetworkGraph groups. Numbering follows the position in communities, so skipped small communities leave gaps and the IDs of the others stay stable. Group IDs must not collide with node IDs, because collapsing a group uses the group ID for its proxy node; choose idPrefix accordingly. A node listed in two communities throws an Error.

Parameters ​

communities ​

readonly (readonly string[])[]

options? ​

GraphCommunityGroupsOptions = {}

Returns ​

GraphGroup[]

Released under the MIT License.