Implements Louvain community detection as part of graph stats