52 enum class BendCost { defaultCost, topDownCost, bottomUpCost };
53 enum class n_type { low, high, inner, outer };
56 m_distributeEdges =
true;
58 m_allowLowZero =
false;
63 m_topToBottom = BendCost::defaultCost;
84 int startBoundBendsPerEdge = 0,
85 bool fourPlanar =
true);
109 void align(
bool al) { m_align = al; }
118 switch (m_topToBottom)
120 case BendCost::topDownCost:
121 cost = pbc*(clDepth+1);
123 case BendCost::bottomUpCost:
124 cost = pbc*(treeDepth - clDepth + 1);
132 std::cout <<
" Cost/pbc: " << cost <<
"/" << pbc <<
"\n";
146 switch (m_topToBottom)
148 case BendCost::topDownCost:
149 cost = pbc*(clDepth+1);
151 case BendCost::bottomUpCost:
152 cost = pbc*(treeDepth - clDepth + 1);
184 bool maxBound =
true)
189 const int angleId = angle / 90;
190 const edge e2 = aTwin[netArc];
196 lowB[netArc] = 2 - angleId;
200 upB[e2] = lowB[e2] = 0;
203 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.