|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Class for computing the maximum cardinality matching of a bipartite graph. More...
#include <tpl_bipartite.H>
Public Member Functions | |
| Compute_Maximum_Cardinality_Bipartite_Matching (SA __sa=SA()) | |
| Builds the computation with the filter of the arcs. | |
| void | operator() (const GT &g, DynDlist< typename GT::Arc * > &matching) |
| Computes the maximum bipartite matching of a graph. | |
Private Attributes | |
| SA | sa |
Class for computing the maximum cardinality matching of a bipartite graph.
The class handles two type parameters:
Definition at line 333 of file tpl_bipartite.H.
|
inlineexplicit |
Builds the computation with the filter of the arcs.
| [in] | __sa | the filter of the arcs, which each iterator copies. |
Definition at line 342 of file tpl_bipartite.H.
|
inline |
Computes the maximum bipartite matching of a graph.
compute_maximum_cardinality_bipartite_matching(g,matching) takes a bipartite graph g and computes the maximum bipartite matching in the list matching.
The procedure computes the bipartition sets, then constructs an equivalent unit-capacity flow network, and invokes a maximum flow algorithm on it.
| [in] | g | the bipartite graph. |
| [out] | matching | list of arcs that form the matching. |
| bad_alloc | if there is not enough memory. |
Definition at line 359 of file tpl_bipartite.H.
References Aleph::Compute_Maximum_Cardinality_Bipartite_Matching< GT, Max_Flow, SA >::sa.
|
private |
Definition at line 335 of file tpl_bipartite.H.
Referenced by Aleph::Compute_Maximum_Cardinality_Bipartite_Matching< GT, Max_Flow, SA >::operator()().