Accepts an igraph object and returns community memberships.
Requires the igraph package.
The base clusterer() uses wcss and entropy as generic defaults, but
cluster_louvain_graph() specializes both because graph community detection
is not a point-to-centroid clustering problem.
Default evaluation in cluster_louvain_graph() is:
main metric: metric_modularity()
internal evaluation: modularity
external evaluation: none
The general wcss fallback is not used because graph communities are judged
by network connectivity structure, not by geometric dispersion. The generic
external entropy default is also not kept because this class operates on an
igraph object and has no natural reference labels unless the user supplies
an external comparison separately.