pub fn detect_clusters(conn: &Connection<'_>) -> Result<ClusterStats>Expand description
Run Louvain community detection on the code graph and store results.
- Queries all CALLS edges to build an undirected adjacency list.
- Runs single-level Louvain (iterative modularity optimization).
- Creates Cluster nodes and MEMBER_OF edges in the graph.