103 m_minNodeDist = dist;
108 return m_minLayerDist;
113 m_minLayerDist = dist;
118 return m_fixedLayerDist;
123 m_fixedLayerDist = b;
183 return n1 >= 0 && n1 < n
185 && layer[n1] == layer[n2];
191 || actNode == first[layer[actNode]];
197 || actNode == first[layer[actNode] + 1] - 1;
231 void sortLongEdges(
int actNode,
int dir,
double *pos,
bool &exD,
double &dist,
int *block,
bool *marked);
255 bool placeSingleNode(
int leftBnd,
int rightBnd,
int actNode,
double &best,
int d);
281 void placeNodes(
int leftBnd,
int rightBnd,
int left,
int right,
int d);
304 void moveLongEdge(
int actNode,
int dir,
bool *marked);
318 void straightenEdge(
int actNode,
bool *marked);
321 void findPlacement();
double * mDist
Similar to totalB, used for temporary storage.
int k
The number of layers.
int n
The number of nodes including virtual nodes.
double layerDistance() const
Returns the option layer distance.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
double nodeDistance() const
Returns the option node distance.
Declaration of interface hierarchy layout algorithms (3.
bool isFirst(int actNode) const
int * first
Stores for every layer the index of the first node.
List< int > ** longEdge
The nodes belonging to a long edge.
double m_minNodeDist
The minimal node distance on a layer.
void decrTo(double &d, double t)
Coordinate assignment phase for the Sugiyama algorithm by Buchheim et al.
Stores additional attributes of a graph (like layout information).
Interface of hierarchy layout algorithms.
bool sameLayer(int n1, int n2) const
int * layer
Stores for every node its layer.
virtual ~FastHierarchyLayout()
int m
The number edge sections.
double * x
for every node : x coordinate of node.
void nodeDistance(double dist)
Sets the option node distance to dist.
void fixedLayerDistance(bool b)
Sets the option fixed layer distance to b.
bool * virt
for every node : virt[node] = 1 if node is virtual, 0 otherwise.
bool fixedLayerDistance() const
Returns the option fixed layer distance.
double * totalB
for every node : minimal possible distance between the center of a node and first[layer[node]].
bool m_fixedLayerDist
0 if distance between layers should be variable, 1 otherwise.
bool isLast(int actNode) const
void incrTo(double &d, double t)
double * height
for every layer : height[layer] = height of max{height of node on layer}.
The namespace for all OGDF objects.
double * breadth
for every node : breadth[node] = width of the node.
double * y
for every layer : y coordinate of layer.
Declaration of doubly linked lists and iterators.
double m_minLayerDist
The minimal distance between layers.
void layerDistance(double dist)
Sets the option layer distance to dist.