#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

networkx.classes.function.number_of_nodes

number_of_nodes(G)[source]

Returns the number of nodes in the graph.