add_edge¶
-
void
libsemigroups::ActionDigraph
::
add_edge
(node_type i, node_type j, label_type lbl)¶ Add an edge from
i
toj
labelledlbl
.If
i
andj
are nodes inthis
, andlbl
is in the range [0, out_degree()), then this method adds an edge edge fromi
toj
labelledlbl
.- Return
(None)
- Complexity
Constant.
- Parameters
i
: the source nodej
: the range nodelbl
: the label of the edge fromi
toj
- Exceptions
LibsemigroupsException
: ifi
,j
, orlbl
is not valid. If an exception is thrown,this
is guaranteed not to be modified (strong exception guarantee).