dynetx.DynGraph.size

DynGraph.size(t=None)

Return the number of edges at time t.

Parameters

tsnapshot id (default=None)

If None will be returned the size of the flattened graph.

Returns

nedgesint

The number of edges

See Also

number_of_edges

Examples

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