dynetx.DynGraph.add_cycle

DynGraph.add_cycle(nodes, t=None)

Add a cycle at time t.

Parameters

nodesiterable container

A container of nodes.

t : snapshot id (default=None)

See Also

add_path, add_cycle

Examples

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