|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Maximum-weight matching in general undirected graphs. More...
#include <algorithm>#include <cstddef>#include <cstdint>#include <functional>#include <limits>#include <type_traits>#include <utility>#include <ah-errors.H>#include <ahSort.H>#include <cookie_guard.H>#include <tpl_array.H>#include <tpl_dynDlist.H>#include <tpl_graph.H>#include <tpl_graph_utils.H>#include <blossom_weighted_mwmatching.H>Go to the source code of this file.
Classes | |
| struct | Aleph::Blossom_Weighted_Result< Weight_Type > |
| Result of weighted matching. More... | |
| class | Aleph::Compute_Maximum_Weight_General_Matching< GT, Weight, SA > |
| Functor wrapper for weighted blossom matching. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::blossom_weighted_detail |
Functions | |
| template<typename T > | |
| long long | Aleph::blossom_weighted_detail::to_ll_checked (T value) |
| template<class GT , class Weight = Dft_Dist<GT>, class SA = Dft_Show_Arc<GT>> | |
| Blossom_Weighted_Result< long long > | Aleph::compute_maximum_weight_general_matching (const GT &g, DynDlist< typename GT::Arc * > &matching, Weight weight=Weight(), SA sa=SA(), const bool max_cardinality=false) |
| Compute maximum-weight matching in a general undirected graph. | |
| template<class GT , class Weight = Dft_Dist<GT>, class SA = Dft_Show_Arc<GT>> | |
| Blossom_Weighted_Result< long long > | Aleph::blossom_maximum_weight_matching (const GT &g, DynDlist< typename GT::Arc * > &matching, Weight weight=Weight(), SA sa=SA(), const bool max_cardinality=false) |
| Alias for compute_maximum_weight_general_matching(). | |
Maximum-weight matching in general undirected graphs.
This header provides an Edmonds-blossom based solver for maximum-weight matching in non-bipartite graphs.
Given an undirected graph \(G=(V,E)\) where each edge \(e \in E\) has a weight \(w(e)\), find a matching \(M\) such that \(\sum_{e \in M} w(e)\) is maximized.
List_Graph, List_SGraph, Array_Graph)Tests/weighted_blossom_test.cc)Dft_Dist<GT>.long long).Definition in file Blossom_Weighted.H.