add_nodes¶
-
void
libsemigroups::Forest
::
add_nodes
(size_t n)¶ Add nodes to the Forest.
- Return
(None)
- 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 intothis
may be invalidated by a call to this function.- Parameters
n
: the number of nodes to add.