|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Edmonds' Blossom algorithm for maximum matching in general graphs. More...
#include <cstdint>#include <cstddef>#include <cassert>#include <functional>#include <utility>#include <cookie_guard.H>#include <tpl_array.H>#include <tpl_dynListQueue.H>#include <tpl_dynMapTree.H>#include <tpl_dynDlist.H>#include <tpl_graph.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| class | Aleph::blossom_detail::Edmonds_Blossom_Matcher< GT, SA > |
| class | Aleph::Compute_Maximum_Cardinality_General_Matching< GT, SA > |
| Functor wrapper for maximum cardinality general matching. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::blossom_detail |
Functions | |
| template<class GT , class SA = Dft_Show_Arc<GT>> | |
| size_t | Aleph::compute_maximum_cardinality_general_matching (const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA()) |
| Computes a maximum cardinality matching in a general graph. | |
| template<class GT , class SA = Dft_Show_Arc<GT>> | |
| size_t | Aleph::blossom_maximum_cardinality_matching (const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA()) |
| Alias of compute_maximum_cardinality_general_matching(). | |
Edmonds' Blossom algorithm for maximum matching in general graphs.
This file implements the classic Edmonds-Blossom algorithm for maximum cardinality matching in undirected graphs.
Given an undirected graph \(G=(V,E)\), find a matching of maximum cardinality, where a matching is a set of arcs with no shared endpoint.
List_Graph, List_SGraph, Array_Graph)Definition in file Blossom.H.