rustworkx.PyGraph.has_edge#

PyGraph.has_edge(node_a, node_b, /)#

Return True if there is an edge between node_a and node_b.

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

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

Returns:

True if there is an edge false if there is no edge

Return type:

bool