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

Functor wrapper for welsh_powell_coloring. More...

#include <Graph_Coloring.H>

Public Member Functions

 Welsh_Powell_Coloring (SA __sa=SA())
 Keeps sa, the filter of the arcs.
 
size_t operator() (const GT &g, DynMapTree< typename GT::Node *, size_t > &colors) const
 Execute Welsh-Powell coloring.
 

Private Attributes

SA sa
 

Detailed Description

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

Functor wrapper for welsh_powell_coloring.

Template Parameters
GTGraph type.
SAArc-filter functor (defaults to Dft_Show_Arc<GT>).

Definition at line 673 of file Graph_Coloring.H.

Constructor & Destructor Documentation

◆ Welsh_Powell_Coloring()

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

Keeps sa, the filter of the arcs.

Definition at line 679 of file Graph_Coloring.H.

Member Function Documentation

◆ operator()()

template<AlephGraph GT, ArcFilter< GT > SA = Dft_Show_Arc<GT>>
size_t Aleph::Welsh_Powell_Coloring< GT, SA >::operator() ( const GT &  g,
DynMapTree< typename GT::Node *, size_t > &  colors 
) const
inline

Execute Welsh-Powell coloring.

Parameters
[in]gInput graph (no self-loops).
[out]colorsOutput node→color map (overwritten).
Returns
Number of distinct colors used.
Exceptions
std::domain_errorif g contains a self-loop.

Definition at line 687 of file Graph_Coloring.H.

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

Member Data Documentation

◆ sa

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

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