|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Bipartite graph detection and 2-coloring. More...
#include <ah-graph-concepts.H>#include <tpl_dynDlist.H>#include <tpl_dynMapTree.H>#include <tpl_dynListQueue.H>#include <tpl_net.H>#include <ah-errors.H>#include <cookie_guard.H>#include <tpl_dfs_stack.H>#include <limits>Go to the source code of this file.
Classes | |
| class | Aleph::Compute_Bipartite< GT, SA > |
| Class that takes a bipartite graph and computes the partition sets. More... | |
| class | Aleph::Compute_Maximum_Cardinality_Bipartite_Matching< GT, Max_Flow, SA > |
| Class for computing the maximum cardinality matching of a bipartite graph. More... | |
| struct | Aleph::Hopcroft_Karp_Frame< GT, SA > |
| A left node that the search for an augmenting path goes through, and the next of its arcs to look at, with a copy of the filter of the search. More... | |
| class | Aleph::Hopcroft_Karp_Matching< GT, SA > |
| Functor wrapper for hopcroft_karp_matching. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Enumerations | |
| enum | Aleph::Bipartite_Color { Aleph::Bp_White , Aleph::Bp_Red , Aleph::Bp_Blue } |
Functions | |
| template<AlephGraph GT> | |
| static long & | Aleph::color (typename GT::Node *p) |
| template<AlephGraph GT> | |
| static long & | Aleph::color (typename GT::Arc *a) |
| template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>> | |
| void | Aleph::compute_bipartite (const GT &g, DynDlist< typename GT::Node * > &l, DynDlist< typename GT::Node * > &r, SA sa=SA()) |
| Computes the partition sets of a bipartite graph. | |
| template<AlephGraph GT, template< class > class Max_Flow = Ford_Fulkerson_Maximum_Flow, ArcFilter< GT > SA = Dft_Show_Arc<GT>> | |
| void | Aleph::compute_maximum_cardinality_bipartite_matching (const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA()) |
| Computes the maximum cardinality matching of a bipartite graph. | |
| template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>> | |
| bool | Aleph::compute_bipartite_all_components (const GT &g, DynDlist< typename GT::Node * > &l, DynDlist< typename GT::Node * > &r, SA sa=SA()) |
| Computes the partition sets of a bipartite graph handling all connected components. | |
| template<AlephGraph GT, ArcFilter< GT > SA> | |
| GT::Node * | Aleph::hopcroft_karp_next (const GT &g, Hopcroft_Karp_Frame< GT, SA > &f, bool &free) noexcept(noexcept(f.it.next_ne())) |
| template<AlephGraph GT, ArcFilter< GT > SA> | |
| void | Aleph::hopcroft_karp_match (const GT &g, Hopcroft_Karp_Frame< GT, SA > &f) noexcept |
| template<AlephGraph GT, ArcFilter< GT > SA> | |
| static bool | Aleph::hopcroft_karp_dfs (const GT &g, typename GT::Node *u, Dfs_Stack< Hopcroft_Karp_Frame< GT, SA > > &frames, const SA &sa) |
| template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>> | |
| void | Aleph::hopcroft_karp_matching (const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA()) |
| Computes a maximum cardinality matching on a bipartite graph using the Hopcroft-Karp algorithm. | |
Bipartite graph detection and 2-coloring.
Tests if a graph is bipartite (can be 2-colored) and computes the bipartition if it exists.
Definition in file tpl_bipartite.H.