rustworkx.PyDiGraph.weighted_edge_list#
- PyDiGraph.weighted_edge_list()#
Get edge list with weights
Returns a list of tuples of the form
(source, target, weight)wheresourceandtargetare the node indices andweightis the payload of the edge.- Returns:
An edge list with weights
- Return type: