48#include <lal/linear_arrangement.hpp>
49#include <lal/graphs/rooted_tree.hpp>
50#include <lal/detail/array.hpp>
Uniformly random selection of planar arrangements of a free tree.
Definition rand_planar_arrangements.hpp:86
rand_planar_arrangements(const graphs::free_tree &T, const uint64_t seed=0) noexcept
Constructor with a constant reference to a free tree.
node m_previous_root
Definition rand_planar_arrangements.hpp:160
linear_arrangement yield_arrangement() noexcept
Returns a random planar arrangement.
Definition rand_planar_arrangements.hpp:135
graphs::free_tree m_T_copy
A copy of a free tree.
Definition rand_planar_arrangements.hpp:145
detail::array< std::vector< node > > m_rdata
The random data for all vertices.
Definition rand_planar_arrangements.hpp:156
linear_arrangement get_arrangement() noexcept
Make a random planar arrangement of a rooted tree.
std::mt19937 m_gen
Random number generator.
Definition rand_planar_arrangements.hpp:163
const graphs::free_tree & m_T
Definition rand_planar_arrangements.hpp:148
Free tree graph class.
Definition free_tree.hpp:60
Linear arrangement of vertices.
Definition linear_arrangement.hpp:103
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
Wrapper of a C array for automatic deallocation of memory.
Definition array.hpp:59