NetworkX

Previous topic

networkx.Graph.selfloop_edges

Next topic

networkx.Graph.number_of_nodes

networkx.Graph.order

Graph.order()

Return the number of nodes in the graph.

Returns:

nnodes : int

The number of nodes in the graph.