NetworkX

Previous topic

has_edge

Next topic

number_of_nodes

order

DiGraph.order()

Return the number of nodes in the graph.

Returns :

nnodes : int

The number of nodes in the graph.