number_of_nodes#

number_of_nodes(G)[source]#

Returns the number of nodes in the graph.

This function wraps the G.number_of_nodes function.