add_edge¶
-
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.- Return
(None)
- Complexity
Constant.
- Parameters
i: the source nodej: the range nodelbl: the label of the edge fromitoj
- Exceptions
LibsemigroupsException: ifi,j, orlblis not valid. If an exception is thrown,thisis guaranteed not to be modified (strong exception guarantee).