dynetx.classes.function.add_path¶
-
dynetx.classes.function.
add_path
(G, nodes, t, **attr)¶ Add a path at time t.
Parameters: - G (graph) – A DyNetx graph
- nodes (iterable container) – A container of nodes.
- t (snapshot id (default=None)) – snapshot id
See also
Examples
>>> G = dn.DynGraph() >>> dn.add_path(G, [0,1,2,3], t=0)