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.PyDiGraph.edge_list#

PyDiGraph.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