Documentation
¶
Overview ¶
Package cluster runs community detection (Louvain, via gonum) on the graph, then post-processes the result the way the Python original does: oversized communities are split, and IDs are assigned by descending size with a lexical tie-break so the same grouping always yields the same IDs across runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeCommunity ¶
NodeCommunity inverts communities into node ID -> community ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.