add_rule(word_type const&, word_type const&)

inline void libsemigroups::CongruenceWrapper::add_rule(word_type const &u, word_type const &v)

Add a rule.

Complexity

Constant.

Parameters
  • u – the left-hand side of the rule being added.

  • v – the right-hand side of the rule being added.

Throws

LibsemigroupsException – if any of the following apply:

  • started() returns true; or

  • u or v contains a letter that is out of bounds.

Returns

(None)