is_monoid¶
-
bool
libsemigroups::FroidurePinBase::is_monoid()¶ Check if the semigroup represented by
thisis a monoid.- Return
trueif the semigroup represented bythiscontains FroidurePin::One()(), andfalseif not.- Exceptions
This function guarantees not to throw a LibsemigroupsException.
- Complexity
\(O(|S||A|)\) where \(S\) is the semigroup represented by
thisand \(A\) is the set of generators used to definethis.- Parameters
(None).