add_nodes¶
-
inline void libsemigroups::ActionDigraph::add_nodes(size_t nr)¶
Adds
nr
nodes tothis
.- 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
Linear in
nr_nodes() + nr
.- 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
nr – the number of nodes to add.
- Returns
(None)