Baseclasses
Definition
CompactionModule is the base class for all compaction modules. A compaction module works on a grid layout or an orthogonal representation of a graph and produces again a grid layout.
Input and Output Parameters
input parameter: | graph |
in![]() |
... | ||
output parameter: | GridLayout |
out![]() |
Implementation of Compaction Algorithms
An implementation of a compaction module must override the protected methods call( G, L) and call( H, L). The first gets as input a constant reference to a graph G and a reference to a GridLayout L which will be modified. The second method gets a constant reference to an OrthogonalRepresentation and returns the computed GridLayout in L.
#include < AGD/CompactionModule.h >
Initialization
CompactionModule | C | initializes a compaction module. |
Operations
Standard Interface
bool | C.check(const leda_graph& G, AgdKey& p) | |
returns true if G satisfies the precondition of C. Otherwise, false is returned, and message contains the error message. | ||
double | C.call(GridLayout& L) | implements the compaction algorithm based on the initial GridLayout L and its underlying graph. Returns the new GridLayout in L. |
int | C.call(const OrthogonalRepresentation& H, GridLayout& L) | |
implements the compaction algorithm for OrthogonalRepresentation H. The computed GridLayout will be returned in L. | ||
void | C.output_level(int o) | sets the output level to o.
Reasonable values are
o ![]() |
int | C.output_level() | returns the output level |
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13