number_of_nodes

number_of_nodes(G)[source]

Return the number of nodes in the graph.