100 return m_minNodeDist;
105 m_minNodeDist = dist;
110 return m_minLayerDist;
115 m_minLayerDist = dist;
120 return m_fixedLayerDist;
125 m_fixedLayerDist = b;
189 layer[n1] == layer[n2]);
193 return (actNode < 0 ||
195 actNode == first[layer[actNode]]);
199 return (actNode < 0 ||
201 actNode == first[layer[actNode] + 1] -1);
235 void sortLongEdges(
int actNode,
int dir,
double *pos,
bool &exD,
double &dist,
int *block,
bool *marked);
259 bool placeSingleNode(
int leftBnd,
int rightBnd,
int actNode,
double &best,
int d);
285 void placeNodes(
int leftBnd,
int rightBnd,
int left,
int right,
int d);
308 void moveLongEdge(
int actNode,
int dir,
bool *marked);
322 void straightenEdge(
int actNode,
bool *marked);
325 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)
Helper class for accessing graph attributes from a copy of the graph.
Coordinate assignment phase for the Sugiyama algorithm by Buchheim et al.
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.