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

Functor wrapper for hopcroft_karp_matching. More...

#include <tpl_bipartite.H>

Public Member Functions

 Hopcroft_Karp_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 matching using Hopcroft-Karp.
 

Private Attributes

SA sa
 

Detailed Description

template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
class Aleph::Hopcroft_Karp_Matching< GT, SA >

Functor wrapper for hopcroft_karp_matching.

Template Parameters
GTthe graph type.
SAarc filter (default: Dft_Show_Arc<GT>).

Definition at line 679 of file tpl_bipartite.H.

Constructor & Destructor Documentation

◆ Hopcroft_Karp_Matching()

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

Builds the computation with the filter of the arcs.

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

Definition at line 688 of file tpl_bipartite.H.

Member Function Documentation

◆ operator()()

template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
void Aleph::Hopcroft_Karp_Matching< GT, SA >::operator() ( const GT &  g,
DynDlist< typename GT::Arc * > &  matching 
)
inline

Computes the maximum matching using Hopcroft-Karp.

Parameters
[in]gthe bipartite graph.
[out]matchinglist of arcs forming the maximum matching.
Exceptions
domain_errorif the graph is not bipartite.

Definition at line 696 of file tpl_bipartite.H.

References Aleph::Hopcroft_Karp_Matching< GT, SA >::sa.

Member Data Documentation

◆ sa

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

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