neighbor¶
-
inline node_type libsemigroups::ActionDigraph::neighbor(node_type v, label_type lbl) const¶
Get the range of the edge with source node
vand edge-labellbl.- Complexity
Constant.
- Parameters
v – the node
lbl – the label
- Throws
LibsemigroupsException – if
vorlblis not valid.- Returns
Returns the node adjacent to
vvia the edge labelledlbl, or libsemigroups::UNDEFINED; both are values of type ActionDigraph::node_type.