add_rule(std::string const&, std::string const&)¶
-
inline void libsemigroups::FpSemigroupInterface::add_rule(std::string const &u, std::string 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
; oru
orv
contains a letter that does not belong to alphabet().
- Returns
(None)