45#include <lal/definitions.hpp>
46#include <lal/numeric/rational.hpp>
47#include <lal/graphs/undirected_graph.hpp>
48#include <lal/graphs/directed_graph.hpp>
Directed graph class.
Definition directed_graph.hpp:68
Undirected graph class.
Definition undirected_graph.hpp:67
Exact rational number.
Definition rational.hpp:63
double mean_dependency_distance(const graphs::directed_graph &g, const linear_arrangement &pi={}) noexcept
Computes the mean dependency distance as a floating point value.
uint32_t sum_edge_lengths(const graphs::directed_graph &g, const linear_arrangement &pi={}) noexcept
Computes the sum of the length of the edges in a linear arrangement.
numeric::rational mean_dependency_distance_rational(const graphs::directed_graph &g, const linear_arrangement &pi={}) noexcept
Computes the mean dependency distance as an exact rational value.
Main namespace of the library.
Definition definitions.hpp:48
std::vector< position > linear_arrangement
A linear arrangement of the nodes of a graph.
Definition definitions.hpp:72