Graph.number_of_nodes

Graph.number_of_nodes()[source]

Compute the number of nodes of the network.

Returns

int – the number of nodes.