Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
LongestPathCompaction.h
Go to the documentation of this file.
1
33#pragma once
34
35#include <ogdf/basic/Graph.h>
36#include <ogdf/basic/SList.h>
37#include <ogdf/basic/basic.h>
39
40namespace ogdf {
41
42class GridLayoutMapped;
43class OrthoRep;
44class PlanRep;
45template<class ATYPE>
46class CompactionConstraintGraph;
47
66public:
68 explicit LongestPathCompaction(bool tighten = true, int maxImprovementSteps = 0);
69
72 GridLayoutMapped& drawing);
73
74
77 GridLayoutMapped& drawing);
78
79 //
80 // options
81
83 void tighten(bool select) { m_tighten = select; }
84
86 bool tighten() const { return m_tighten; }
87
89 void maxImprovementSteps(int maxSteps) { m_maxImprovementSteps = maxSteps; }
90
92 int maxImprovementSteps() const { return m_maxImprovementSteps; }
93
94
95private:
97
99
101
102
103 // options
106
109};
110
111}
Includes declaration of graph class.
Declaration of class RoutingChannel which maintains required size of routing channels and separation,...
Declaration of singly linked lists and iterators.
Basic declarations, included by all source files.
Represents a constraint graph used for compaction.
Extends GridLayout by a grid mapping mechanism.
Compaction algorithm using longest paths in the constraint graph.
void maxImprovementSteps(int maxSteps)
Sets the option max improvement steps.
void constructiveHeuristics(PlanRep &PG, OrthoRep &OR, const RoutingChannel< int > &rc, GridLayoutMapped &drawing)
Constructive heurisitic for orthogonal representations.
void applyLongestPaths(const CompactionConstraintGraph< int > &D, NodeArray< int > &pos)
SList< node > m_pseudoSources
The list of pseudo-sources.
int maxImprovementSteps() const
Returns the option max improvement steps.
int m_maxImprovementSteps
The maximal number of improvement steps.
void improvementHeuristics(PlanRep &PG, OrthoRep &OR, const RoutingChannel< int > &rc, GridLayoutMapped &drawing)
Improvement heurisitic for orthogonal drawings.
void moveComponents(const CompactionConstraintGraph< int > &D, NodeArray< int > &pos)
bool m_tighten
Tighten pseudo-components.
bool tighten() const
Returns the option tighten.
NodeArray< int > m_component
The pseudo component of a node.
void tighten(bool select)
Sets option tighten to select.
void computeCoords(const CompactionConstraintGraph< int > &D, NodeArray< int > &pos)
LongestPathCompaction(bool tighten=true, int maxImprovementSteps=0)
Creates an instance of the longest path compaction algorithm.
Orthogonal representation of an embedded graph.
Definition OrthoRep.h:225
Planarized representations (of a connected component) of a graph.
Definition PlanRep.h:68
Maintains input sizes for constructive compaction (size of routing channels, separation,...
Singly linked lists (maintaining the length of the list).
Definition SList.h:845
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.