Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
LocalBiconnectedMerger.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/Graph.h>
36#include <ogdf/basic/basic.h>
38
39namespace ogdf {
40class MultilevelGraph;
41
43
47private:
52
53 void initCuts(Graph& G);
54 int realNodeMark(int index);
55
58 bool buildOneLevel(MultilevelGraph& MLG) override;
59 bool doMerge(MultilevelGraph& MLG, node parent, node mergePartner, int level);
60 bool doMergeIfPossible(Graph& G, MultilevelGraph& MLG, node parent, node mergePartner, int level);
61 bool canMerge(Graph& G, node parent, node mergePartner);
62 bool canMerge(Graph& G, node parent, node mergePartner, int testStrength);
63
64public:
69 void setFactor(double factor);
70};
71
72}
Includes declaration of graph class.
Declaration and implementation of HashArray 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
Indexed arrays using hashing for element access.
Definition HashArray.h:93
The local biconnected merger for multilevel layout.
LocalBiconnectedMerger()
Constructs a LocalBiconnectedMerger multilevel builder.
bool buildOneLevel(MultilevelGraph &MLG) override
Creates the next level in the hierarchy by merging vertices based on matching, edge cover,...
void setFactor(double factor)
Specifies the ratio between two consecutive level sizes up to which merging is done.
bool doMergeIfPossible(Graph &G, MultilevelGraph &MLG, node parent, node mergePartner, int level)
bool doMerge(MultilevelGraph &MLG, node parent, node mergePartner, int level)
bool canMerge(Graph &G, node parent, node mergePartner)
bool canMerge(Graph &G, node parent, node mergePartner, int testStrength)
HashArray< int, int > m_realNodeMarks
Base class for merger modules.
Class for the representation of nodes.
Definition Graph_d.h:241
RegisteredArray for nodes, edges and adjEntries of a graph.
Definition Graph_d.h:659
#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.