3.5.4.4. networkx.MultiDiGraph.order

MultiDiGraph.order()

Return the number of nodes in the graph.

Returns:

nnodes : int

The number of nodes in the graph.