48#include <lal/linear_arrangement.hpp>
49#include <lal/graphs/directed_graph.hpp>
50#include <lal/graphs/undirected_graph.hpp>
51#include <lal/linarr/algorithms_C.hpp>
52#include <lal/numeric/rational.hpp>
144 const std::vector<linear_arrangement>& arrs,
164 const std::vector<linear_arrangement>& arrs,
189 uint64_t upper_bound,
213 uint64_t upper_bound,
240 uint64_t upper_bound,
266 uint64_t upper_bound,
294 const std::vector<linear_arrangement>& arrs,
295 uint64_t upper_bound,
321 const std::vector<linear_arrangement>& arrs,
322 uint64_t upper_bound,
352 const std::vector<linear_arrangement>& arrs,
353 const std::vector<uint64_t>& upper_bounds,
382 const std::vector<linear_arrangement>& arrs,
383 const std::vector<uint64_t>& upper_bounds,
Directed graph class.
Definition: directed_graph.hpp:68
Undirected graph class.
Definition: undirected_graph.hpp:67
Linear arrangement of vertices.
Definition: linear_arrangement.hpp:103
Exact rational number.
Definition: rational.hpp:63
uint64_t num_crossings(const graphs::directed_graph &G, const algorithms_C &A=algorithms_C::ladder) noexcept
Computes the number of edge crossings in a linear arrangement.
numeric::rational predicted_num_crossings_rational(const graphs::undirected_graph &g, const linear_arrangement &arr={}) noexcept
Predicts the number of crossings.
std::vector< uint64_t > is_num_crossings_lesseq_than_list(const graphs::directed_graph &G, const std::vector< linear_arrangement > &arrs, uint64_t upper_bound, const algorithms_C &A=algorithms_C::ladder) noexcept
Is the number of crossings in the linear arrangement less than a constant?
std::vector< uint64_t > num_crossings_list(const graphs::directed_graph &G, const std::vector< linear_arrangement > &arrs, const algorithms_C &A=algorithms_C::ladder) noexcept
Computes the number of edge crossings in a linear arrangement.
double predicted_num_crossings(const graphs::undirected_graph &g, const linear_arrangement &arr={}) noexcept
Approximates the number of crossings.
algorithms_C
The different algorithms for computing the number of crossings.
Definition: algorithms_C.hpp:59
@ ladder
Dynamic programming algorithm .
uint64_t is_num_crossings_lesseq_than(const graphs::directed_graph &G, uint64_t upper_bound, const algorithms_C &A=algorithms_C::ladder) noexcept
Is the number of crossings in the linear arrangement less than a constant?
Main namespace of the library.
Definition: basic_types.hpp:50