add_edge

inline void libsemigroups::ActionDigraph::add_edge(node_type i, node_type j, label_type lbl)

Add an edge from i to j labelled lbl.

If i and j are nodes in this, and lbl is in the range [0, out_degree()), then this method adds an edge edge from i to j labelled lbl.

Complexity

Constant.

Parameters
  • i – the source node

  • j – the range node

  • lbl – the label of the edge from i to j

Throws

LibsemigroupsException – if i, j, or lbl is not valid. If an exception is thrown, this is guaranteed not to be modified (strong exception guarantee).

Returns

(None)