set_identity(std::string const&)¶
-
void
libsemigroups::FpSemigroupInterface::set_identity(std::string const &id)¶ Set a character in alphabet() to be the identity.
This function adds rules to
thisso thatidis the identity. This function can be called repeatedly.- Return
(None)
- Complexity
\(O(n)\) where \(n\) is alphabet().size().
- See
- Parameters
id: a string containing the character to be the identity.
- Exceptions
LibsemigroupsException: Ifidhas length greater than 1, oridcontains a character that is not in alphabet().