Baseclasses
Definition
The class OptCompCoord represents a layout algorithm for hierarchies which assigns x-coordinates to nodes according to the optimal solution of an optimization problem. The y-coordinates are computed in a straight-forward way.
More precisely, the optimization problem is defined as follows
min![]() ![]() |
||||
x(v) - x(u) | > = | ![]() |
where v is successor of u on the same layer | |
x(v) | > = | origin.y | for all v ![]() |
The y-coordinates of the layers L1,..., Ln are defined recursively:
General Information
Algorithm | |
name | OptCompCoord |
long name | Optimal Layout of Hierarchies |
author |
Implementation | |
author | C. Gutwenger |
date | June 1999 |
version | 1.0 |
Pre- and Postcondition
precondition | = | ![]() |
postcondition(PRE) | = | ![]() |
Optional Parameters Instances of OptCompCoord provide the following optional parameters:
#include < AGD/OptCompCoord.h >
Creation
OptCompCoord | L | creates an instance L of type OptCompCoord. |
Operations
Standard Interface (Inherited Methods) The detailed description of these methods can be found in the manual entries of the base class (HierarchyLayoutModule).
bool | L.check(const GraphCopy& GC, const Hierarchy& H, AgdKey& p) | |
void | L.call(const GraphCopy& GC, const Hierarchy& H, LayoutInterface& A) |
Access to Options
double | L.node_distance() | |
void | L.node_distance(double x) | |
double | L.layer_distance() | |
void | L.layer_distance(double x) | |
DPoint | L.origin() | |
void | L.origin(DPoint p) | |
double | L.weight0() | |
void | L.weight0(double x) | |
double | L.weight1() | |
void | L.weight1(double x) | |
double | L.weight2() | |
void | L.weight2(double x) |
Implementation
The optimization problem is refomulated as a linear program, which is solved with an LP-solver.
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13