Working of Phase2 - Louvain