42class GridLayoutMapped;
46class CompactionConstraintGraph;
48class MinimumEdgeDistances;
54 explicit FlowCompaction(
int maxImprovementSteps = 0,
int costGen = 1,
int costAssoc = 1);
71 int originalSeparation
99 void align(
bool b) { m_align = b; }
104 bool fixZeroLength =
false,
bool fixVertexSize =
false,
105 bool improvementHeuristics =
false,
bool onlyGen =
false);
Includes declaration of graph class.
Declaration of class RoutingChannel which maintains required size of routing channels and separation,...
Basic declarations, included by all source files.
Represents a constraint graph used for compaction.
represents compaction algorithm using min-cost flow in the dual of the constraint graph
void costAssoc(int c)
sets cost of arcs in constraint graph corresponding to associations
void dfsAssignPos(NodeArray< bool > &visited, NodeArray< int > &pos, node v, int x)
EdgeArray< edge > m_dualEdge
bool m_cageExpense
should cageedges be more expensive than others? will be propagated to compactionConstraintGraph
void improvementHeuristics(PlanRep &PG, OrthoRep &OR, const RoutingChannel< int > &rc, GridLayoutMapped &drawing)
call of improvement heuristics for orthogonal drawing (variable cages)
bool m_align
toggle if brother nodes in hierarchies should be aligned
void align(bool b)
set alignment option
int m_costAssoc
cost of arcs in constraint graph corresponding to associations
void improvementHeuristics(PlanRep &PG, OrthoRep &OR, MinimumEdgeDistances< int > &minDist, GridLayoutMapped &drawing, int originalSeparation)
call of improvement heuristics for orthogonal drawing (tight cages)
int m_numGenSteps
number of steps reserved for generalization compaction
int m_maxImprovementSteps
maximal number of improvement steps
void costGen(int c)
sets cost of arcs in constraint graph corresponding to generalizations
FlowCompaction(int maxImprovementSteps=0, int costGen=1, int costAssoc=1)
construction
int costAssoc() const
returns option costGen
int m_scalingSteps
number of improvement steps with decreasing separation
void scalingSteps(int sc)
sets number of separation scaling improvement steps
int costGen() const
returns option costGen
int maxImprovementSteps() const
returns option maxImprovementSteps
void maxImprovementSteps(int maxSteps)
sets option maxImprovementSteps, which is the maximal number of steps performed by improvementHeurist...
int m_costGen
cost of arcs in constraint graph corresponding to generalization
void constructiveHeuristics(PlanRep &PG, OrthoRep &OR, const RoutingChannel< int > &rc, GridLayoutMapped &drawing)
call of constructive heuristics for orthogonal representation
void computeCoords(CompactionConstraintGraph< int > &D, NodeArray< int > &pos, bool fixZeroLength=false, bool fixVertexSize=false, bool improvementHeuristics=false, bool onlyGen=false)
Extends GridLayout by a grid mapping mechanism.
Maintains input sizes for improvement compaction (deltas and epsilons)
Class for the representation of nodes.
Orthogonal representation of an embedded graph.
Planarized representations (of a connected component) of a graph.
Maintains input sizes for constructive compaction (size of routing channels, separation,...
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
RegisteredArray for nodes, edges and adjEntries of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
The namespace for all OGDF objects.