promiscuity¶
- promiscuity(communities)[source]¶
Calculates promiscuity of communities.
Promiscuity calculates the number of communities each node is a member of. 0 entails only 1 community. 1 entails all communities [prom-1].
- Parameters:
communities (array) – temporal communities labels of type (node,time). Temporal communities labels should be non-trivial through snapshots (i.e. temporal consensus clustering should be run)
- Returns:
promiscuity_coeff – promiscuity of each node
- Return type:
array
References
[prom-1]Papadopoulos, Lia, et al. “Evolution of network architecture in a granular material under compression.” Physical Review E 94.3 (2016): 032908.