48#include <lal/linear_arrangement.hpp>
49#include <lal/graphs/rooted_tree.hpp>
50#include <lal/detail/data_array.hpp>
Uniformly random generation of planar arrangements of a labeled rooted tree.
Definition: rand_planar_arrangements.hpp:81
rand_planar_arrangements(const graphs::free_tree &T, uint64_t seed=0) noexcept
Constructor with a constant reference to a free tree.
node m_previous_root
Definition: rand_planar_arrangements.hpp:155
linear_arrangement yield_arrangement() noexcept
Returns a random planar arrangement.
Definition: rand_planar_arrangements.hpp:130
graphs::free_tree m_T_copy
A copy of a free tree.
Definition: rand_planar_arrangements.hpp:140
detail::data_array< std::vector< node > > m_rdata
The random data for all vertices.
Definition: rand_planar_arrangements.hpp:151
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:158
const graphs::free_tree & m_T
Definition: rand_planar_arrangements.hpp:143
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:50
uint64_t node
Node type. See Node / Vertex page for further details.
Definition: basic_types.hpp:53
Wrapper of a C array for autmatic deallocation of memory.
Definition: data_array.hpp:59