dynetx.DynGraph.temporal_snapshots_ids¶
- DynGraph.temporal_snapshots_ids()¶
Return the ordered list of snapshot ids present in the dynamic graph.
Returns¶
- ndlist
a list of snapshot ids
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) >>> G.temporal_snapshots_ids() [0, 1, 2]