word_to_string¶
-
std::string
libsemigroups::FpSemigroup::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: ifwcontains any indices that are out of range.