add_to_out_degree

inline void libsemigroups::ActionDigraph::add_to_out_degree(size_t nr)

Adds nr to the out-degree of this.

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

\(O(mn)\) where m is the number of nodes, and n is the new out degree of the digraph.

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

nr – the number of new out-edges for every node.

Returns

(None)