factorisation(element_index_type)

word_type libsemigroups::FroidurePinBase::factorisation(element_index_type pos)

Returns a libsemigroups::word_type which evaluates to the TElementType in position pos of this.

The key difference between this member function and FroidurePin::minimal_factorisation(element_index_type pos), is that the resulting factorisation may not be minimal. If pos is greater than the size of the semigroup, then a LibsemigroupsException is thrown.