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.has_edge#
- PyDAG.has_edge(node_a, node_b, /)#
Check if there is a directed edge from
node_a
tonode_b
.- Parameters:
node_a (int) – The index of the source node
node_b (int) – The index of the destination node
- Returns:
True
if the edge exists,False
otherwise- Return type:
bool