50#include <lal/numeric/rational.hpp>
51#include <lal/graphs/undirected_graph.hpp>
52#include <lal/graphs/free_tree.hpp>
53#include <lal/graphs/rooted_tree.hpp>
109 const uint64_t n = t.get_num_nodes();
143 assert(t.is_rooted_tree());
145 const uint64_t n = t.get_num_nodes();
160 assert(t.is_rooted_tree());
Free tree graph class.
Definition: free_tree.hpp:60
Rooted tree graph class.
Definition: rooted_tree.hpp:103
Undirected graph class.
Definition: undirected_graph.hpp:67
Exact rational number.
Definition: rational.hpp:63
double to_double() const noexcept
Converts this rational to a double-precision floating-point value.
Definition: rational.hpp:850
numeric::rational var_sum_edge_lengths_rational(const graphs::undirected_graph &g) noexcept
Computes the variance of the sum of the length of edges of a graph, .
numeric::rational exp_sum_edge_lengths_rational(const graphs::undirected_graph &g) noexcept
Expected sum of edge lengths of an undirected graph in unconstrained arrangments, .
Definition: D_rla.hpp:75
double exp_sum_edge_lengths(const graphs::undirected_graph &g) noexcept
Expected sum of edge lengths of an undirected graph in unconstrained arrangments, .
Definition: D_rla.hpp:89
numeric::rational exp_sum_edge_lengths_projective_rational(const graphs::rooted_tree &rt) noexcept
Expected sum of edge lengths of a tree constrained to projective arrangments, .
double exp_sum_edge_lengths_planar(const graphs::free_tree &t) noexcept
Expected sum of edge lengths of a tree constrained to planar arrangments, .
Definition: D_rla.hpp:250
double var_sum_edge_lengths(const graphs::undirected_graph &g) noexcept
Computes the variance of the sum of the length of edges of a graph, .
Definition: D_rla.hpp:293
double exp_sum_edge_lengths_projective(const graphs::rooted_tree &rt) noexcept
Expected sum of edge lengths of a tree constrained to projective arrangments, .
Definition: D_rla.hpp:196
numeric::rational exp_sum_edge_lengths_planar_rational(const graphs::free_tree &t) noexcept
Expected sum of edge lengths of a tree constrained to planar arrangments, .
Main namespace of the library.
Definition: basic_types.hpp:50