Community Detection, Label Propagation, Python, Networkx, Graph.
all of it together def shlpa_algorithm(g): visitSequence = dict(sorted(sh_index.items(), key=lambda item: item[1])) i = 0 listofIteration = [100,200,300,400,500,600,700,800,900,1000] while i <= 1000: for node in visitSequence.keys(): LPA(g, node) if i in listofIteration: print(i) findModularity(g)