rustworkx.PyDAG.edge_list#

PyDAG.edge_list()#

获取边的列表

返回一个形式为(source, target)的元组列表,其中 sourcetarget是节点索引。

Returns:

无边权边列表

Return type:

EdgeList