|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
38 class GraphAttributes;
39 class HierarchyLevelsBase;
175 return n1 >= 0 && n1 < n && n2 >= 0 && n2 < n && layer[n1] == layer[n2];
179 return actNode < 0 || actNode >= n || actNode == first[layer[actNode]];
183 return actNode < 0 || actNode >= n || actNode == first[layer[actNode] + 1] - 1;
217 void sortLongEdges(
int actNode,
int dir,
double* pos,
bool& exD,
double& dist,
int* block,
242 bool placeSingleNode(
int leftBnd,
int rightBnd,
int actNode,
double& best,
int d);
268 void placeNodes(
int leftBnd,
int rightBnd,
int left,
int right,
int d);
291 void moveLongEdge(
int actNode,
int dir,
bool* marked);
305 void straightenEdge(
int actNode,
bool* marked);
308 void findPlacement();
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
double nodeDistance() const
Returns the option node distance.
bool sameLayer(int n1, int n2) const
bool isFirst(int actNode) const
int k
The number of layers.
Interface of hierarchy layout algorithms.
double * y
for every layer : y coordinate of layer.
int * layer
Stores for every node its layer.
bool m_fixedLayerDist
0 if distance between layers should be variable, 1 otherwise.
bool fixedLayerDistance() const
Returns the option fixed layer distance.
double * mDist
Similar to totalB, used for temporary storage.
double * x
for every node : x coordinate of node.
virtual ~FastHierarchyLayout()
double * totalB
for every node : minimal possible distance between the center of a node and first[layer[node]].
void decrTo(double &d, double t)
bool isLast(int actNode) const
void fixedLayerDistance(bool b)
Sets the option fixed layer distance to b.
int * first
Stores for every layer the index of the first node.
double layerDistance() const
Returns the option layer distance.
bool * virt
for every node : virt[node] = 1 if node is virtual, 0 otherwise.
List< int > ** longEdge
The nodes belonging to a long edge.
double * height
for every layer : height[layer] = height of max{height of node on layer}.
double m_minNodeDist
The minimal node distance on a layer.
double m_minLayerDist
The minimal distance between layers.
void incrTo(double &d, double t)
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Declaration of interface hierarchy layout algorithms (3. phase of Sugiyama).
int m
The number edge sections.
int n
The number of nodes including virtual nodes.
Coordinate assignment phase for the Sugiyama algorithm by Buchheim et al.
void nodeDistance(double dist)
Sets the option node distance to dist.
void layerDistance(double dist)
Sets the option layer distance to dist.
double * breadth
for every node : breadth[node] = width of the node.