tnetwork.DynGraphIG.to_DynGraphSN

DynGraphIG.to_DynGraphSN(slices=None, discard_empty=True)[source]

Convert to a snapshot representation.

Parameters:slices – can be one of
  • None, snapshot_affiliations are created such as a new snapshot is created at every node/edge change,
  • an integer, snapshot_affiliations are created using a sliding window
  • a list of periods, represented as pairs (start, end), each period yielding a snapshot
Parameters:discard_empty – if True, the returned dynamic network won’t have empty snapshots
Returns:a dynamic graph represented as snapshot_affiliations, the weight of nodes/edges correspond to their presence time during the snapshot