dynetx.DynGraph.order¶
- DynGraph.order(t=None)¶
Return the number of nodes in the t snpashot of a dynamic graph.
Parameters¶
- tsnapshot id (default=None)
If None return the number of nodes in the flattened graph.
Returns¶
- nnodesint
The number of nodes in the graph.
See Also¶
number_of_nodes which is identical
Examples¶
>>> import dynetx as dn >>> G = dn.DynGraph() # or DiGraph, MultiGraph, MultiDiGraph, etc >>> G.add_path([0,1,2], t=0) >>> G.order(0) 3