|
Aleph-w 3.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 | |
| void | operator() (const GT &g, DynDlist< typename GT::Arc * > &matching) |
| Computes the maximum bipartite matching of a graph. | |
Class for computing the maximum cardinality matching of a bipartite graph.
The class handles two type parameters:
Definition at line 293 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 310 of file tpl_bipartite.H.
References Aleph::maps().