48#include <lal/graphs/rooted_tree.hpp>
49#include <lal/generate/rand_lab_free_trees.hpp>
111 void init(
const uint64_t n,
const uint64_t seed = 0) noexcept {
196 void init(
const uint64_t n,
const uint64_t seed = 0) noexcept {
Uniformly random selection of labelled free trees.
Definition rand_lab_free_trees.hpp:68
void init(const uint64_t n, const uint64_t seed=0) noexcept
Initializes the generator with the number of nodes and a seed.
Definition rand_lab_free_trees.hpp:115
graphs::free_tree get_tree() noexcept
Returns a labelled free tree chosen uniformly at random.
void clear() noexcept
Clears the memory used.
Definition rand_lab_free_trees.hpp:133
std::uniform_int_distribution< uint64_t > m_unif
Distribution of the numbers.
Definition rand_lab_free_trees.hpp:149
std::mt19937 m_gen
Random number generator.
Definition rand_lab_free_trees.hpp:147
Uniformly random selection of labelled rooted trees.
Definition rand_lab_rooted_trees.hpp:67
void init(const uint64_t n, const uint64_t seed=0) noexcept
Initializes the generator with the number of nodes and a seed.
Definition rand_lab_rooted_trees.hpp:111
_rand_lab_rooted_trees(const _rand_lab_rooted_trees &Gen) noexcept=default
Copy constructor.
_rand_lab_rooted_trees() noexcept
Empty constructor.
Definition rand_lab_rooted_trees.hpp:72
~_rand_lab_rooted_trees()=default
Default destructor.
_rand_lab_rooted_trees(_rand_lab_rooted_trees &&Gen) noexcept=default
Move constructor.
_rand_lab_rooted_trees(const uint64_t n, const uint64_t seed=0) noexcept
Constructor with size of tree and seed for the random number generator.
Definition rand_lab_rooted_trees.hpp:81
_rand_lab_rooted_trees & operator=(const _rand_lab_rooted_trees &g) noexcept=default
Copy assignment operator.
graphs::rooted_tree get_tree() noexcept
Generates uniformly at random a labelled rooted tree.
Definition rand_lab_rooted_trees.hpp:122
Base class for tree generators.
Definition tree_generator.hpp:123
void clear() noexcept
Clears the memory used by the generator.
Definition tree_generator.hpp:166
void init(const uint64_t n) noexcept
Initializes the tree generator.
Definition tree_generator.hpp:160
graphs::rooted_tree get_tree() noexcept
Definition tree_generator.hpp:196
Uniformly random selection of labelled rooted trees.
Definition rand_lab_rooted_trees.hpp:153
rand_lab_rooted_trees(const rand_lab_rooted_trees &Gen)=default
Copy constructor.
rand_lab_rooted_trees(rand_lab_rooted_trees &&Gen)=default
Move constructor.
~rand_lab_rooted_trees()=default
Default destructor.
rand_lab_rooted_trees & operator=(const rand_lab_rooted_trees &g) noexcept=default
Copy assignment operator.
void init(const uint64_t n, const uint64_t seed=0) noexcept
Initializes the generator with the number of nodes and a seed.
Definition rand_lab_rooted_trees.hpp:196
rand_lab_rooted_trees() noexcept
Empty constructor.
Definition rand_lab_rooted_trees.hpp:158
rand_lab_rooted_trees(const uint64_t n, const uint64_t seed=0) noexcept
Constructor with size of tree and seed for the random number generator.
Definition rand_lab_rooted_trees.hpp:168
void clear() noexcept
Clear the memory used by the generator.
Definition rand_lab_rooted_trees.hpp:202
graphs::rooted_tree yield_tree() noexcept
Yields a tree, advancing the generator if necessary.
Definition rand_lab_rooted_trees.hpp:207
_rand_lab_rooted_trees m_Gen
See _rand_lab_rooted_trees for details.
Definition rand_lab_rooted_trees.hpp:222
graphs::rooted_tree __get_tree() noexcept
Returns a labelled rooted tree chosen uniformly at random.
Definition rand_lab_rooted_trees.hpp:218
Free tree graph class.
Definition free_tree.hpp:60
Rooted tree graph class.
Definition rooted_tree.hpp:109
Main namespace of the library.
Definition basic_types.hpp:48
uint64_t node
Node type. See Node / Vertex page for further details.
Definition basic_types.hpp:51