3.2.4.4. networkx.Graph.order

Graph.order()[source]

Return the number of nodes in the graph.

Returns:

nnodes : int

The number of nodes in the graph.