Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

NodeColoringRecursiveLargestFirst.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/basic/Graph.h>
36 #include <ogdf/basic/basic.h>
38 
39 namespace ogdf {
40 
46 public:
47  virtual NodeColor call(const Graph& graph, NodeArray<NodeColor>& colors,
48  NodeColor start = 0) override;
49 
50 private:
57  void getCandidate(node& candidate, NodeArray<int>& degreesUnavailable, Graph& graph);
58 };
59 }
ogdf::NodeColoringRecursiveLargestFirst
A simple greedy node coloring heuristic in graphs.
Definition: NodeColoringRecursiveLargestFirst.h:45
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
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::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::NodeColoringModule::NodeColor
unsigned int NodeColor
Data type of the node colors.
Definition: NodeColoringModule.h:53
ogdf::NodeElement
Class for the representation of nodes.
Definition: Graph_d.h:240