set_alphabet(size_t)

void libsemigroups::fpsemigroup::KnuthBendix::set_alphabet(size_t n)

Set the size of the alphabet.

Use this to specify the alphabet of a finitely presented semigroup if you intend to use indices rather than the actual letters in the alphabet in subsequent calculations.

Complexity

Constant.

See

alphabet() and set_alphabet(std::string const&).

Parameters

n – the number of letters.

Throws

LibsemigroupsException – If the size of the of alphabet has already been set to another value, or the parameter n is 0.

Returns

(None)