45#include <lal/linear_arrangement.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:67
Undirected graph class.
Definition undirected_graph.hpp:66
Linear arrangement of vertices.
Definition linear_arrangement.hpp:103
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.
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.
uint64_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.
Main namespace of the library.
Definition basic_types.hpp:48