dynetx.classes.function.temporal_snapshots_ids¶
-
dynetx.classes.function.
temporal_snapshots_ids
(G)¶ Return the ordered list of snapshot ids present in the dynamic graph.
Parameters: G (graph) – A DyNetx graph. Returns: nd – a list of snapshot ids Return type: list Examples
>>> import dynetx as dn >>> G = dn.DynGraph() >>> G.add_path([0,1,2,3], t=0) >>> G.add_path([0,4,5,6], t=1) >>> G.add_path([7,1,2,3], t=2) >>> dn.temporal_snapshots(G) [0, 1, 2]