|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Minimum-cost matching in general undirected graphs. More...
#include <cstddef>#include <limits>#include <type_traits>#include <utility>#include <ah-errors.H>#include <Blossom_Weighted.H>Go to the source code of this file.
Classes | |
| struct | Aleph::Min_Cost_Matching_Result< Cost_Type > |
| Result of minimum-cost matching. More... | |
| struct | Aleph::Min_Cost_Perfect_Matching_Result< Cost_Type > |
| Result of minimum-cost perfect matching. More... | |
| class | Aleph::min_cost_matching_detail::Negated_Cost_Accessor< Cost_Accessor > |
| class | Aleph::Compute_Minimum_Cost_General_Matching< GT, Cost, SA > |
| Functor wrapper for minimum-cost general matching. More... | |
| class | Aleph::Compute_Minimum_Cost_Perfect_General_Matching< GT, Cost, SA > |
| Functor wrapper for minimum-cost perfect general matching. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::min_cost_matching_detail |
Minimum-cost matching in general undirected graphs.
This header exposes a dedicated API for minimum-cost matching on non-bipartite graphs over Aleph graph backends.
Given an undirected graph \(G=(V,E)\) where each edge \(e \in E\) has a cost \(c(e)\), find a matching \(M\) that minimizes \(\sum_{e \in M} c(e)\).
Optional mode max_cardinality = true changes the objective to: 1) maximize matching cardinality, and 2) among those, minimize total cost.
It also provides a dedicated perfect-matching variant that reports feasibility and, when feasible, the minimum perfect-matching cost.
List_Graph, List_SGraph, and Array_Graphlong long with checks)Definition in file Min_Cost_Matching.H.