Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compute_Bipartite< GT, SA > Class Template Reference

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
 

Detailed Description

template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
class Aleph::Compute_Bipartite< GT, 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.

Constructor & Destructor Documentation

◆ Compute_Bipartite()

template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
Aleph::Compute_Bipartite< GT, SA >::Compute_Bipartite ( SA  __sa = SA())
inlineexplicit

Builds the computation with the filter of the arcs.

Parameters
[in]__sathe filter of the arcs, which each iterator copies.

Definition at line 190 of file tpl_bipartite.H.

Member Function Documentation

◆ operator()()

template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
void Aleph::Compute_Bipartite< GT, SA >::operator() ( const GT &  g,
DynDlist< typename GT::Node * > &  l,
DynDlist< typename GT::Node * > &  r 
)
inline

Computes the partition sets of a bipartite graph.

Parameters
[in]gthe bipartite graph.
[out]lone partition set.
[out]rthe other partition set.
Exceptions
domain_errorif during computation it is determined that the graph is not bipartite.
bad_allocif there is not enough memory.

Definition at line 201 of file tpl_bipartite.H.

References l, r, and Aleph::Compute_Bipartite< GT, SA >::sa.

Member Data Documentation

◆ sa

template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
SA Aleph::Compute_Bipartite< GT, SA >::sa
private

Definition at line 183 of file tpl_bipartite.H.

Referenced by Aleph::Compute_Bipartite< GT, SA >::operator()().


The documentation for this class was generated from the following file: