word_to_stringΒΆ
-
std::string
libsemigroups::FpSemigroupInterface
::
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
.- Return
a std::string.
- Complexity.
\(O(n)\) where \(n\) is the length of
w
.- Parameters
w
: the libsemigroups::word_type to convert.
- Exceptions
LibsemigroupsException
: ifw
contains any indices that are out of range.