initial code for multiple passes on louvain