Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

NodeColoringBoppanaHalldorsson.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/basic.h>
37 
38 namespace ogdf {
39 
46 public:
53  }
54 
59  inline void setRamseyProcedure(RamseyProcedure ramseyProcedure) {
60  NodeColoringModule::m_ramseyProcedure = ramseyProcedure;
61  }
62 
63  virtual NodeColor call(const Graph& graph, NodeArray<NodeColor>& colors,
64  NodeColor start = 0) override;
65 };
66 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::NodeColoringModule::RamseyProcedure::smallestDegree
@ smallestDegree
Uses the node with the smallest degree.
ogdf::colors
const std::array< Color, 63 > colors
An array of 63 different colors to cycle through.
ogdf::NodeColoringModule
Approximation algorithms for the node coloring problem in graphs.
Definition: NodeColoringModule.h:48
ogdf::NodeColoringBoppanaHalldorsson::setRamseyProcedure
void setRamseyProcedure(RamseyProcedure ramseyProcedure)
Sets the Ramsey-procedure of findings nodes to a specific value.
Definition: NodeColoringBoppanaHalldorsson.h:59
ogdf::internal::GraphRegisteredArray
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition: Graph_d.h:658
ogdf::Graph
Data type for general directed graphs (adjacency list representation).
Definition: Graph_d.h:869
NodeColoringModule.h
Template of base class of node coloring algorithms.
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::NodeColoringBoppanaHalldorsson
Approximation algorithms for the node coloring problem in graphs.
Definition: NodeColoringBoppanaHalldorsson.h:45
ogdf::NodeColoringBoppanaHalldorsson::NodeColoringBoppanaHalldorsson
NodeColoringBoppanaHalldorsson()
The constructor.
Definition: NodeColoringBoppanaHalldorsson.h:51
ogdf::NodeColoringModule::m_ramseyProcedure
RamseyProcedure m_ramseyProcedure
The RamseyProcedure to be used to select nodes.
Definition: NodeColoringModule.h:115
ogdf::NodeColoringModule::RamseyProcedure
RamseyProcedure
Declares the procedure of finding nodes in Ramsey's algorithm.
Definition: NodeColoringModule.h:68