45#include <lal/graphs/free_tree.hpp>
46#include <lal/graphs/rooted_tree.hpp>
47#include <lal/linarr/algorithms_Dmin.hpp>
Free tree graph class.
Definition free_tree.hpp:59
Rooted tree graph class.
Definition rooted_tree.hpp:107
algorithms_Dmin
The different algorithms for computing the minimum sum of the length of the edges .
Definition algorithms_Dmin.hpp:58
@ Unconstrained_YS
Yossi Shiloach's algorithm to calculate unconstrained optimal linearization of free trees.
std::pair< uint32_t, linear_arrangement > min_sum_edge_lengths(const graphs::free_tree &t, const algorithms_Dmin &a=algorithms_Dmin::Unconstrained_YS) noexcept
Computes the minimum value of in free trees.
std::pair< uint32_t, linear_arrangement > min_sum_edge_lengths_projective(const graphs::rooted_tree &t) noexcept
Computes the minimum value of in rooted trees under the projectivity constraint.
std::pair< uint32_t, linear_arrangement > min_sum_edge_lengths_planar(const graphs::free_tree &t) noexcept
Computes the minimum value of in trees under the planarity constraint.
Main namespace of the library.
Definition definitions.hpp:48