rustworkx.PyGraph.edge_list#

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