NetworkX

Previous topic

nodes

Next topic

nodes_iter

number_of_nodes

number_of_nodes(G)[source]

Return the number of nodes in the graph.