word_to_string¶
-
std::string libsemigroups::CongruenceWrapper::word_to_string(word_type const &w) const¶
Convert a libsemigroups::word_type to a std::string representing the same element of the finitely presented semigroup represented by
this
.- Complexity.
\(O(n)\) where \(n\) is the length of
w
.
- Parameters
w – the libsemigroups::word_type to convert.
- Throws
LibsemigroupsException – if
w
contains any indices that are out of range.- Returns
a std::string.