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

Functor wrapper for dsatur_coloring. More...

#include <Graph_Coloring.H>

Public Member Functions

 DSatur_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 DSatur coloring.
 

Private Attributes

SA sa
 

Detailed Description

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

Functor wrapper for dsatur_coloring.

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

Definition at line 701 of file Graph_Coloring.H.

Constructor & Destructor Documentation

◆ DSatur_Coloring()

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

Keeps sa, the filter of the arcs.

Definition at line 707 of file Graph_Coloring.H.

Member Function Documentation

◆ operator()()

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

Execute DSatur 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 715 of file Graph_Coloring.H.

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

Member Data Documentation

◆ sa

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

Definition at line 703 of file Graph_Coloring.H.

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


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