|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Class that takes a bipartite graph and computes the partition sets. More...
#include <tpl_bipartite.H>
Public Member Functions | |
| Compute_Bipartite (SA __sa=SA()) | |
| Builds the computation with the filter of the arcs. | |
| void | operator() (const GT &g, DynDlist< typename GT::Node * > &l, DynDlist< typename GT::Node * > &r) |
| Computes the partition sets of a bipartite graph. | |
Private Attributes | |
| SA | sa |
Class that takes a bipartite graph and computes the partition sets.
A graph is bipartite if it can be divided into two subsets l and r such that every node in l only has edges to nodes in r and vice versa.
Definition at line 181 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 190 of file tpl_bipartite.H.
|
inline |
Computes the partition sets of a bipartite graph.
| [in] | g | the bipartite graph. |
| [out] | l | one partition set. |
| [out] | r | the other partition set. |
| domain_error | if during computation it is determined that the graph is not bipartite. |
| bad_alloc | if there is not enough memory. |
Definition at line 201 of file tpl_bipartite.H.
References l, r, and Aleph::Compute_Bipartite< GT, SA >::sa.
|
private |
Definition at line 183 of file tpl_bipartite.H.
Referenced by Aleph::Compute_Bipartite< GT, SA >::operator()().