add_nodes

inline void libsemigroups::Forest::add_nodes(size_t n)

Add nodes to the Forest.

Exceptions

This function guarantees not to throw a LibsemigroupsException. If an exception is thrown, this is guaranteed not to be modified (strong exception guarantee).

Complexity

At most linear in nr_nodes() + n.

Iterator validity

This function modifies the object defined by this, any iterators, pointers or references pointing into this may be invalidated by a call to this function.

Parameters

n – the number of nodes to add.

Returns

(None)