rustworkx.PyGraph.has_edge#
- PyGraph.has_edge(node_a, node_b, /)#
Check if there is any undirected edge between
node_aandnode_b.- Parameters:
node_a (int) – The index of the first node
node_b (int) – The index of the second node
- Returns:
Trueif the edge exists,Falseotherwise- Return type:
bool