Dear Tiago, thanks for your convenient answers. My final question is about how to deal when one have a node in different partitions. If I have these communities, for example: cover = [ [0,1,2,3], [3,1,5,4] ] How it should be the label partition? [0, ?, 0, ?, 1, 1] The question marks is where I do not know what label should I write for? Which label should I write there for the node 1, which is in two communities (community of label 0, and 1)? The same for the node 3..
Any comment of how to deal with the entries of your function for covers will be very welcome. Thanks in advance for your answer. Johann