set_inverses¶
-
void
libsemigroups::CongruenceWrapper::set_inverses(std::string const &a)¶ Set the inverses of letters in alphabet().
The letter in
awith indexiis the inverse of the letter in alphabet() with indexi.- Return
(None)
- Complexity
\(O(n)\) where \(n\) is alphabet().size().
- See
- Parameters
a: a string of length alphabet().size().
- Exceptions
LibsemigroupsException: if any of the following apply:ais empty;alphabet() is empty;
no identity has been defined using set_identity();
the length of
ais not equal to alphabet().size();the letters in
aare not exactly those in alphabet() (perhaps in a different order).