tnetwork.DynGraphSN.add_interactions_from

DynGraphSN.add_interactions_from(nodePairs, times)[source]

Add interactions between the provided node pairs for the provided times.

Add each provided nodePair at each provided time

Parameters:
  • nodePairs – list of pairs of nodes, or a single pair of nodes as a tuple or set
  • times – list of times as integer or a single integer