LAL: Linear Arrangement Library 24.10.00
A library focused on algorithms on linear arrangements of graphs.
|
Namespace for the brute force algorithm to calculate \(C\). More...
Functions | |
template<bool decide_upper_bound, class arrangement_t > | |
uint64_t | compute (const graphs::undirected_graph &g, const arrangement_t &arr, const uint64_t upper_bound=0) noexcept |
Brute force computation of \(C\) for undirected graphs. | |
template<bool decide_upper_bound, class arrangement_t > | |
uint64_t | inner_compute (const graphs::directed_graph &g, const position pu, const position pv, const arrangement_t &arr, uint64_t C, const uint64_t upper_bound) noexcept |
Brute force computation of \(C\) for directed graphs. | |
template<bool decide_upper_bound, class arrangement_t > | |
uint64_t | compute (const graphs::directed_graph &g, const arrangement_t &arr, const uint64_t upper_bound) noexcept |
Brute force computation of \(C\) for directed graphs. | |
Namespace for the brute force algorithm to calculate \(C\).
|
nodiscardnoexcept |
Brute force computation of \(C\) for directed graphs.
When template parameter decide_upper_bound is false, the function returns the number of crossings.
decide_upper_bound | Boolean value to choose the nature of the return type. |
arrangement_t | Type of arrangement. |
g | Input graph. |
arr | Input arrangement. |
upper_bound | Upper bound on the number of crossings. |
|
nodiscardnoexcept |
Brute force computation of \(C\) for undirected graphs.
When template parameter decide_upper_bound is false, the function returns the number of crossings.
decide_upper_bound | Boolean value to choose the nature of the return type. |
arrangement_t | Type of arrangement. |
g | Input graph. |
arr | Input arrangement. |
upper_bound | Upper bound on the number of crossings. |
|
nodiscardnoexcept |
Brute force computation of \(C\) for directed graphs.
When template parameter decide_upper_bound is false, the function returns the number of crossings.
decide_upper_bound | Boolean value to choose the nature of the return type. |
arrangement_t | Type of arrangement. |
g | Input graph. |
pu | Starting position of the computation. |
pv | Ending position of the computation. |
arr | Input arrangement. |
C | Current number of crossings. |
upper_bound | Upper bound on the number of crossings. |