neighbor¶
-
node_type
libsemigroups::ActionDigraph
::
neighbor
(node_type v, label_type lbl) const¶ Get the range of the edge with source node
v
and edge-labellbl
.- Return
Returns the node adjacent to
v
via the edge labelledlbl
, or libsemigroups::UNDEFINED; both are values of type ActionDigraph::node_type.- Complexity
Constant.
- Parameters
v
: the nodelbl
: the label
- Exceptions
LibsemigroupsException
: ifv
orlbl
is not valid.