rustworkx.PyDAG.num_nodes#

PyDAG.num_nodes()#

Return the number of nodes in the graph