unsafe_neighbor¶
-
inline node_type libsemigroups::ActionDigraph::unsafe_neighbor(node_type v, label_type lbl) const¶
Get the range of the edge with source node
vand edge-labellbl.This function guarantees not to throw a LibsemigroupsException.
- Complexity
Constant.
Warning
This function is unsafe because it does not verify
vorlblis valid.- Parameters
v – the node
lbl – the label
- Returns
Returns the node adjacent to
vvia the edge labelledlbl, or libsemigroups::UNDEFINED; both are values of type ActionDigraph::node_type.