48#include <lal/graphs/directed_graph.hpp>
49#include <lal/numeric/rational.hpp>
Directed graph class.
Definition directed_graph.hpp:68
Exact rational number.
Definition rational.hpp:63
numeric::rational head_initial_rational(const graphs::directed_graph &g, const linear_arrangement &pi={}) noexcept
Computes the headedness of a directed graph as an exact rational number.
double head_initial(const graphs::directed_graph &g, const linear_arrangement &pi={}) noexcept
Computes the headedness of a linearly arranged directed graph.
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