NetworkX

Previous topic

networkx.Graph.has_edge

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.