Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
IndependentSetMerger.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#include <vector>
39
40namespace ogdf {
41class MultilevelGraph;
42
44
48private:
49 float m_base;
50
51 std::vector<node> prebuildLevel(const Graph& G, const std::vector<node>& oldLevelNodes,
52 int level);
53
54 bool buildOneLevel(MultilevelGraph& MLG) override { return false; }
55
56 bool buildOneLevel(MultilevelGraph& MLG, std::vector<node>& levelNodes);
57
58public:
59 void buildAllLevels(MultilevelGraph& MLG) override;
60 void setSearchDepthBase(float base);
61
63};
64
65}
Includes declaration of graph class.
Declaration of MultilevelBuilder.
Basic declarations, included by all source files.
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:866
The independent set merger for multilevel layout.
void buildAllLevels(MultilevelGraph &MLG) override
bool buildOneLevel(MultilevelGraph &MLG, std::vector< node > &levelNodes)
void setSearchDepthBase(float base)
bool buildOneLevel(MultilevelGraph &MLG) override
This method constructs one more level on top of an existing MultilevelGraph.
std::vector< node > prebuildLevel(const Graph &G, const std::vector< node > &oldLevelNodes, int level)
Base class for merger modules.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.