Note
This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.
rustworkx.PyGraph.weighted_edge_list#
- PyGraph.weighted_edge_list()#
Get edge list with weights
Returns a list of tuples of the form
(source, target, weight)
wheresource
andtarget
are the node indices andweight
is the payload of the edge.- Returns:
An edge list with weights
- Return type: