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.PyDAG.get_edge_data#

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