52 enum class BendCost { defaultCost, topDownCost, bottomUpCost };
53 enum class n_type { low, high, inner, outer };
57 m_distributeEdges =
true;
59 m_allowLowZero =
false;
64 m_topToBottom = BendCost::defaultCost;
85 int startBoundBendsPerEdge = 0,
86 bool fourPlanar =
true);
110 void align(
bool al) { m_align = al; }
119 switch (m_topToBottom)
121 case BendCost::topDownCost:
122 cost = pbc*(clDepth+1);
124 case BendCost::bottomUpCost:
125 cost = pbc*(treeDepth - clDepth + 1);
133 cout<<
" Cost/pbc: "<<cost<<
"/"<<pbc<<
"\n";
147 switch (m_topToBottom)
149 case BendCost::topDownCost:
150 cost = pbc*(clDepth+1);
152 case BendCost::bottomUpCost:
153 cost = pbc*(treeDepth - clDepth + 1);
190 bool maxBound =
true)
195 const int angleId = angle / 90;
196 const edge e2 = aTwin[netArc];
202 lowB[netArc] = 2 - angleId;
206 upB[e2] = lowB[e2] = 0;
209 upB[netArc] = 2 - angleId;
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void setAngleBound(edge netArc, int angle, EdgeArray< int > &lowB, EdgeArray< int > &upB, EdgeArray< edge > &aTwin, bool maxBound=true)
Declaration of orthogonal representation of planar graphs.
int clusterProgBendCost(int clDepth, int treeDepth, int pbc)
bool traditional()
returns option for traditional angle distribution
Orthogonal representation of an embedded graph.
void traditional(bool b)
sets option traditional to b
Declaration of ClusterPlanRep class, allowing cluster boundary insertion and shortest path edge inser...
void distributeEdges(bool b)
sets option distributeEdges to b
bool fixDegreeFourAngles()
returns option for free angle assignment at degree four nodes
bool distributeEdges()
returns option distributeEdges
int clusterTradBendCost(int clDepth, int treeDepth, int pbc)
Class for the representation of edges.
Planarized representations for clustered graphs.
void bendCostTopDown(BendCost i)
Computes the orthogonal representation of a clustered graph.
bool multiAlign()
returns option multiAlign
The namespace for all OGDF objects.
Combinatorial embeddings of planar graphs with modification functionality.
void fixDegreeFourAngles(bool b)
sets option for free angle assignment at degree four nodes
void multiAlign(bool b)
sets option multiAlign to b
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.