pub fn louvain_communities(conn: &Connection) -> Result<CommunityResult>Expand description
Compute communities using a simplified single-phase Louvain algorithm.
This implements Phase 1 of the Louvain method (local node moves) only. Phase 2 (community aggregation into super-nodes) is not implemented. For graphs with deep hierarchical community structure, results may be sub-optimal compared to the full two-phase algorithm.
Returns community memberships and modularity score.