PandA-2024.02
Data Structures | Functions
boost Namespace Reference

This algorithm is to find coloring of a graph Algorithm: Let G = (V,E) be a graph with vertices v_1, v_2, ..., v_n. More...

Data Structures

struct  degree_compare_functor
 degree compare functor More...
 
class  dsatur2_coloring_helper
 helper used to color the graph. More...
 
struct  dsatur2_heap_compare_functor
 heap compare functor More...
 
class  dsatur_coloring_helper
 
struct  dsatur_d_list
 
struct  dsatur_degree_compare_functor
 
struct  dsatur_degree_predicate_functor
 
struct  heap_compare_functor
 
class  maxclique_dsatur_coloring_helper
 
struct  select_vertex
 Predicate functor object used to select the proper set of vertices. More...
 

Functions

template<class VertexListGraph , class ColorMap >
property_traits< ColorMap >::value_type degree_coloring (const VertexListGraph &G, ColorMap color)
 coloring of a graph following the descandant degree of vertices More...
 
template<typename VertexListGraph , typename ColorMap >
property_traits< ColorMap >::value_type dsatur2_coloring (const VertexListGraph &G, ColorMap color)
 coloring of a graph following the DSATUR heuristic (version2) More...
 
template<typename VertexListGraph , typename ColorMap >
property_traits< ColorMap >::value_type dsatur_coloring (const VertexListGraph &G, ColorMap color)
 coloring of a graph following the DSATUR heuristic (version1) More...
 
template<class VertexListGraph , class ColorMap >
property_traits< ColorMap >::value_type unsorted_coloring (const VertexListGraph &G, ColorMap color)
 
template<typename VertexListGraph , typename ColorMap >
property_traits< ColorMap >::value_type maxclique_dsatur_coloring (const VertexListGraph &G, ColorMap color)
 

Detailed Description

This algorithm is to find coloring of a graph Algorithm: Let G = (V,E) be a graph with vertices v_1, v_2, ..., v_n.

It is like the sequential algorithm, except that the order in which vertices are chosen is determined statically following the descendant degree coloring.

The color of the vertex v will be stored in color[v]. i.e., vertex v belongs to coloring color[v]

It is like the sequential algorithm, except that the order in which vertices are chosen is determined dynamically based on the number of colors that cannot be used because of conflicts with previously colored vertices. Vertices with the fewest available colors are colored first. The degree of vertices is dynamically modified during the coloring (as in the Michael A. Trick's implementation) while the order of vertices is based on a heap data structure. This implementation corrects an error in the first loop: j start has to start from 0 not from 1. Reference:

The color of the vertex v will be stored in color[v]. i.e., vertex v belongs to coloring color[v]

It is like the sequential algorithm, except that the order in which vertices are chosen is determined dynamically based on the number of colors that cannot be used because of conflicts with previously colored vertices. Vertices with the fewest available colors are colored first. Instead of a circular lists data structure based on arrays I have preferred a vector of double linked lists. Reference:

The color of the vertex v will be stored in color[v]. i.e., vertex v belongs to coloring color[v]

It is like the sequential algorithm, except that the order in which vertices are chosen is determined dynamically based on the number of colors that cannot be used because of conflicts with previously colored vertices. Vertices with the fewest available colors are colored first. The degree of vertices is dynamically modified during the coloring (as in the Michael A. Trick's implementation) while the order of vertices is based on a heap data structure. This implementation corrects an error in the first loop: j start has to start from 0 not from 1. Reference:

The color of the vertex v will be stored in color[v]. i.e., vertex v belongs to coloring color[v]

Function Documentation

◆ degree_coloring()

template<class VertexListGraph , class ColorMap >
property_traits<ColorMap>::value_type boost::degree_coloring ( const VertexListGraph &  G,
ColorMap  color 
)

coloring of a graph following the descandant degree of vertices

Definition at line 102 of file degree_coloring.hpp.

References max.

Referenced by main().

Here is the caller graph for this function:

◆ dsatur2_coloring()

template<typename VertexListGraph , typename ColorMap >
property_traits<ColorMap>::value_type boost::dsatur2_coloring ( const VertexListGraph &  G,
ColorMap  color 
)

coloring of a graph following the DSATUR heuristic (version2)

Definition at line 219 of file dsatur2_coloring.hpp.

References boost::dsatur2_coloring_helper< VertexListGraph, ColorMap, size_type >::SeqColor().

Referenced by bipartite_matching_clique_covering< vertex_type >::color_the_cc_compatibility_graph(), coloring_based_clique_covering< vertex_type >::do_clique_covering(), main(), and vertex_coloring_register::RegisterBinding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dsatur_coloring()

template<typename VertexListGraph , typename ColorMap >
property_traits<ColorMap>::value_type boost::dsatur_coloring ( const VertexListGraph &  G,
ColorMap  color 
)

coloring of a graph following the DSATUR heuristic (version1)

Definition at line 299 of file dsatur_coloring.hpp.

References boost::dsatur_coloring_helper< VertexListGraph, ColorMap, size_type >::SeqColor().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ maxclique_dsatur_coloring()

template<typename VertexListGraph , typename ColorMap >
property_traits<ColorMap>::value_type boost::maxclique_dsatur_coloring ( const VertexListGraph &  G,
ColorMap  color 
)

◆ unsorted_coloring()

template<class VertexListGraph , class ColorMap >
property_traits<ColorMap>::value_type boost::unsorted_coloring ( const VertexListGraph &  G,
ColorMap  color 
)

Definition at line 115 of file maxclique_dsatur_coloring.hpp.

References max.

Referenced by boost::maxclique_dsatur_coloring_helper< VertexListGraph, ColorMap, size_type, SET_container >::MaxCliqueRec().

Here is the caller graph for this function:

Generated on Mon Feb 12 2024 13:04:11 for PandA-2024.02 by doxygen 1.8.13