|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
41 class CombinatorialEmbedding;
50 enum class BendCost { defaultCost, topDownCost, bottomUpCost };
51 enum class n_type { low, high, inner, outer };
54 m_distributeEdges =
true;
56 m_allowLowZero =
false;
61 m_topToBottom = BendCost::defaultCost;
80 int startBoundBendsPerEdge = 0,
bool fourPlanar =
true);
107 void align(
bool al) { m_align = al; }
116 switch (m_topToBottom) {
117 case BendCost::topDownCost:
118 cost = pbc * (clDepth + 1);
120 case BendCost::bottomUpCost:
121 cost = pbc * (treeDepth - clDepth + 1);
129 std::cout <<
" Cost/pbc: " << cost <<
"/" << pbc <<
"\n";
142 switch (m_topToBottom) {
143 case BendCost::topDownCost:
144 cost = pbc * (clDepth + 1);
146 case BendCost::bottomUpCost:
147 cost = pbc * (treeDepth - clDepth + 1);
178 const int angleId = angle / 90;
179 const edge e2 = aTwin[netArc];
185 lowB[netArc] = 2 - angleId;
189 upB[e2] = lowB[e2] = 0;
192 upB[netArc] = 2 - angleId;
bool multiAlign()
returns option multiAlign
bool fixDegreeFourAngles()
returns option for free angle assignment at degree four nodes
The namespace for all OGDF objects.
Includes declaration of graph class.
void fixDegreeFourAngles(bool b)
sets option for free angle assignment at degree four nodes
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
int clusterProgBendCost(int clDepth, int treeDepth, int pbc)
void setAngleBound(edge netArc, int angle, EdgeArray< int > &lowB, EdgeArray< int > &upB, EdgeArray< edge > &aTwin, bool maxBound=true)
Planarized representations for clustered graphs.
void multiAlign(bool b)
sets option multiAlign to b
bool traditional()
returns option for traditional angle distribution
bool distributeEdges()
returns option distributeEdges
void bendCostTopDown(BendCost i)
void distributeEdges(bool b)
sets option distributeEdges to b
Orthogonal representation of an embedded graph.
Computes the orthogonal representation of a clustered graph.
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Combinatorial embeddings of planar graphs with modification functionality.
Class for the representation of edges.
int clusterTradBendCost(int clDepth, int treeDepth, int pbc)
void traditional(bool b)
sets option traditional to b
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.