add_edge¶
-
inline void libsemigroups::ActionDigraph::add_edge(node_type i, node_type j, label_type lbl)¶
Add an edge from
itojlabelledlbl.If
iandjare nodes inthis, andlblis in the range [0, out_degree()), then this method adds an edge edge fromitojlabelledlbl.- Complexity
Constant.
- Parameters
i – the source node
j – the range node
lbl – the label of the edge from
itoj
- Throws
LibsemigroupsException – if
i,j, orlblis not valid. If an exception is thrown,thisis guaranteed not to be modified (strong exception guarantee).- Returns
(None)