rustworkx.PyGraph.num_nodes#

PyGraph.num_nodes()#

Return the number of nodes in the graph