validate_word(std::string const&) const

inline void libsemigroups::FpSemigroup::validate_word(std::string const &w) const

Validates a word.

Complexity

Linear in the length of w.

Parameters

(None)

Parameters

w – the word to validate.

Throws

LibsemigroupsException – if any character in w does not belong to alphabet().

Returns

(None)