48#include <lal/linear_arrangement.hpp>
49#include <lal/graphs/directed_graph.hpp>
50#include <lal/numeric/rational.hpp>
Directed graph class.
Definition: directed_graph.hpp:68
Linear arrangement of vertices.
Definition: linear_arrangement.hpp:103
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: basic_types.hpp:50