Community Detection, Louvain, Leiden, Getting Started.
second phase. The refinement phase does not follow a greedy approach and may merge a node with a randomly chosen community which increases the quality function. This randomness allows discovering the partition space more broadly. Also in the first phase, Leiden follows a different approach to the