tnetwork.DynGraphSN.node_presence

DynGraphSN.node_presence(nodes=None)[source]

Presence time of nodes

Several usages:
  • If nodes==None (default), return a dict for each note, its existing times
  • If nodes is a single node, return the interval of presence of this node
  • If nodes is a set of nodes, return interval of presence of those nodes as a dictionary
Parameters:nodes – list of ndoes
Returns:a dictionary, key:node, value: list of time steps