networkx.classes.function.number_of_nodes

number_of_nodes(G)[source]

Returns the number of nodes in the graph.