rustworkx.PyDiGraph.has_edge#
- PyDiGraph.has_edge(node_a, node_b, /)#
Check if there is a directed edge from
node_atonode_b.- Parameters:
node_a (int) – The index of the source node
node_b (int) – The index of the destination node
- Returns:
Trueif the edge exists,Falseotherwise- Return type:
bool