add_edge¶
-
inline 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
.- Complexity
Constant.
- Parameters
i – the source node
j – the range node
lbl – the label of the edge from
i
toj
- Throws
LibsemigroupsException – if
i
,j
, orlbl
is not valid. If an exception is thrown,this
is guaranteed not to be modified (strong exception guarantee).- Returns
(None)