dynetx.DynGraph.size¶
-
DynGraph.
size
(t=None)¶ Return the number of edges at time t.
Parameters: t (snapshot id (default=None)) – If None will be returned the size of the flattened graph. Returns: nedges – The number of edges Return type: int 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