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.PyDiGraph.has_edge#
- PyDiGraph.has_edge(node_a, node_b, /)#
Return True if there is an edge from node_a to node_b.
- Parameters:
node_a (int) – The source node index to check for an edge
node_b (int) – The destination node index to check for an edge
- Returns:
True if there is an edge false if there is no edge
- Return type:
bool