louvain_clustering
- louvain_clustering(graph: TGraph, *args, **kwargs)[source]
Implements clustering using the Louvain [1] algorithm for modularity optimisation
- Parameters:
graph – input graph
- Returns:
partition tensor
This is a minimal wrapper around
community.best_partition()
from the python-louvain package. Any other arguments provided are passed through.References