Community Detection, Label Propagation, Python, Networkx, Graph.
will implement using_shindex function def using_shindex(g, node, sh_index, neighbours): sh_index_n = {} for i in range(0, len(neighbours)): sh_index_n[neighbours[i]] = sh_index[neighbours[i]] # print("Label of node {} is : {}".format(neighbours[i], unique_labels[neighbours[i]])) # print("sh_index_n