45#include <lal/graphs/free_tree.hpp>
46#include <lal/generate/tree_generator.hpp>
47#include <lal/detail/array.hpp>
136 void init(const uint64_t n) noexcept {
153 [[nodiscard]]
bool end() const noexcept {
Base class for tree generators.
Definition tree_generator.hpp:123
uint64_t m_n
Definition tree_generator.hpp:300
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::free_tree get_tree() noexcept
Definition tree_generator.hpp:196
Exhaustive enumeration of unlabelled free trees.
Definition all_ulab_free_bistar_trees.hpp:98
graphs::free_tree yield_tree() noexcept
Yields a tree, advancing the generator if necessary.
Definition all_ulab_free_bistar_trees.hpp:175
uint64_t m_size
The size of the left partition.
Definition all_ulab_free_bistar_trees.hpp:192
all_ulab_free_bistar_trees() noexcept
Empty constructor.
Definition all_ulab_free_bistar_trees.hpp:101
all_ulab_free_bistar_trees(const all_ulab_free_bistar_trees &Gen) noexcept=default
Copy constructor.
all_ulab_free_bistar_trees(all_ulab_free_bistar_trees &&Gen) noexcept=default
Move constructor.
void init(const uint64_t n) noexcept
Initializes the generator with a given number of vertices.
Definition all_ulab_free_bistar_trees.hpp:136
graphs::free_tree __get_tree() noexcept
Constructs the current tree.
void reset() noexcept
Sets the generator to its initial state.
Definition all_ulab_free_bistar_trees.hpp:171
all_ulab_free_bistar_trees(const uint64_t n) noexcept
Constructor with number of nodes.
Definition all_ulab_free_bistar_trees.hpp:107
void clear() noexcept
Clears the memory used.
Definition all_ulab_free_bistar_trees.hpp:146
bool end() const noexcept
Returns true if the end of the iteration was reached.
Definition all_ulab_free_bistar_trees.hpp:153
void next() noexcept
Generates next tree.
Definition all_ulab_free_bistar_trees.hpp:166
~all_ulab_free_bistar_trees() noexcept=default
Default destructor.
Free tree graph class.
Definition free_tree.hpp:60
Main namespace of the library.
Definition basic_types.hpp:48