dynetx.classes.function.add_cycle

dynetx.classes.function.add_cycle(G, nodes, t, **attr)

Add a cycle at time t.

Parameters

Ggraph

A DyNetx graph

nodesiterable container

A container of nodes.

tsnapshot id (default=None)

snapshot id

See Also

add_path, add_cycle

Examples

>>> G = dn.DynGraph()
>>> dn.add_cycle(G, [0,1,2,3], t=0)