tnetwork.DynCommunitiesSN.affiliations_durations

DynCommunitiesSN.affiliations_durations(nodes=None, communities=None)[source]

Duration of affiliations

Return the duration in each community (for non-zero values) for the provided nodes and the provided communities (default: all) return set of triplets (n,c,duration), or set of pairs of one if the parameters has a single value, or a single value if single node and single com

Parameters:
  • nodes – node(s) for which we want durations. single node or set of nodes
  • communities – communities(s) for which we want durations. single community or set of communities
Returns:

set of triplets (n,c,duration), or set of pairs of one if the parameters has a single value, or a single value if single node and single com