reserve

void libsemigroups::ActionDigraph::reserve(T m, T n) const

Ensures that this has capacity for m nodes each with out-edges, but does not modify nr_nodes() or out_degree().

Return

(None)

Exceptions

This function guarantees not to throw a LibsemigroupsException.

Complexity

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

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
  • m: the number of nodes

  • n: the out-degree