add_generator

void libsemigroups::Action::add_generator(element_type gen)

Add a generator to the action.

An Action instance represents the action of the semigroup generated by the elements added via this member function.

Return

(None)

Exceptions

This function guarantees not to throw a LibsemigroupsException.

Complexity

At most linear in the size() of the action.

Parameters
  • gen: the generator to add.