Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
number_of_nodes
Returns the number of nodes in the graph.