PandA-2024.02
|
#include <dsatur_coloring.hpp>
Public Member Functions | |
dsatur_coloring_helper (const VertexListGraph &_G, ColorMap &_CM, const size_type _num_node) | |
size_type | SeqColor () |
Private Types | |
using | GraphTraits = graph_traits< VertexListGraph > |
using | Vertex = typename GraphTraits::vertex_descriptor |
Private Attributes | |
const size_type | num_node |
std::vector< dsatur_d_list< size_type > * > | satur_to_list |
std::vector< size_type > | vertex_to_satur |
std::vector< dsatur_d_list< size_type > * > | vertex_to_iter |
std::vector< CustomUnorderedSet< size_type > > | color_set |
const VertexListGraph & | G |
ColorMap & | CM |
Definition at line 133 of file dsatur_coloring.hpp.
|
private |
Definition at line 136 of file dsatur_coloring.hpp.
|
private |
Definition at line 137 of file dsatur_coloring.hpp.
|
inline |
Definition at line 147 of file dsatur_coloring.hpp.
References boost::dsatur_d_list< size_type >::next.
|
inline |
color each vertex
scan for maximum saturation list
v is vertex to color, remove from list
assign minimum color not adjacent to v
update neighbors saturation
color not previously adjacent to w
mark color in colorset
remove vertex from satur list
increase saturation and check max
add a new empty list
insert w into new list
Definition at line 182 of file dsatur_coloring.hpp.
References boost::dsatur_degree_compare_functor< size_type, VertexListGraph >::G, boost::dsatur_d_list< size_type >::next, and boost::dsatur_d_list< size_type >::prev.
Referenced by boost::dsatur_coloring().
|
private |
Definition at line 144 of file dsatur_coloring.hpp.
|
private |
Definition at line 142 of file dsatur_coloring.hpp.
|
private |
Definition at line 143 of file dsatur_coloring.hpp.
|
private |
Definition at line 138 of file dsatur_coloring.hpp.
|
private |
Definition at line 139 of file dsatur_coloring.hpp.
|
private |
Definition at line 141 of file dsatur_coloring.hpp.
|
private |
Definition at line 140 of file dsatur_coloring.hpp.