rustworkx.PyDiGraph.get_edge_data#

PyDiGraph.get_edge_data(node_a, node_b, /)#

Return the edge data for an edge between 2 nodes.

Parameters:
  • node_a (int) – The index for the first node

  • node_b (int) – The index for the second node

Returns:

The data object set for the edge

Raises:

NoEdgeBetweenNodes – When there is no edge between nodes