tnetwork.DynGraphLS.to_DynGraphSN¶
-
DynGraphLS.
to_DynGraphSN
(slices=None, weighted=True)[source]¶ Convert to a snapshot representation.
Parameters: slices – can be one of - None, snapshot_affiliations are created according to the frequency of the dynamic network (default one),
- an integer, snapshot_affiliations are created using a sliding window
- a list of periods, represented as pairs (start, end), each period yielding a snapshot
Returns: a dynamic graph represented as snapshot_affiliations, the weight of nodes/edges correspond to their presence time during the snapshot