TopologyDiagram.number_of_nodes

TopologyDiagram.number_of_nodes()[source]

Compute the number of nodes of the graph.

Returns:

int – The number of nodes.