45class CompactionConstraintGraph;
51 explicit FlowCompaction(
int maxImprovementSteps = 0,
int costGen = 1,
int costAssoc = 1);
96 void align(
bool b) { m_align = b; }
102 bool improvementHeuristics =
false,
bool onlyGen =
false);
Declaration of class GridLayoutMapped which extends GridLayout by a grid mapping mechanism.
Declaration of class MinimumEdgeDistances which maintains minimum distances between attached edges at...
Declaration of orthogonal representation of planar graphs.
Declaration of a base class for planar representations of graphs and cluster graphs.
Declaration of class RoutingChannel which maintains required size of routing channels and separation,...
Represents a constraint graph used for compaction.
Dynamic arrays indexed with edges.
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)
Dynamic arrays indexed with nodes.
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,...
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.