Community Detection, Louvain, Leiden, Getting Started.
is applied repeatedly and for all nodes until no further improvement is there. The first phase of the Louvain algorithm stops when a local maxima of modularity is obtained. In the second phase, the algorithm builds a new network considering communities found in the first phase as nodes. Once the