NetworkX

Previous topic

networkx.DiGraph.selfloop_edges

Next topic

networkx.DiGraph.number_of_nodes

networkx.DiGraph.order

DiGraph.order()

Return the number of nodes in the graph.

Returns:

nnodes : int

The number of nodes in the graph.