rustworkx.PyDAG.edge_list#

PyDAG.edge_list()#

Get edge list

Returns a list of tuples of the form (source, target) where source and target are the node indices.

Returns:

An edge list without weights

Return type:

EdgeList