de.cau.cs.kieler.klodd.hierarchical.modules
Interface ILayerAssigner

All Superinterfaces:
IAlgorithm
All Known Implementing Classes:
BalancingLayerAssigner, LongestPathLayerAssigner

public interface ILayerAssigner
extends IAlgorithm

Interface for algorithms that assign layers to each node of a graph.

Rating proposed yellow
(2009-12-11) msp

Method Summary
 LayeredGraph assignLayers(KSlimGraph slimGraph, KNode parentNode, float objSpacing, boolean balanceOverSize)
          Create a layered graph and assign layers to each node.
 
Methods inherited from interface de.cau.cs.kieler.core.alg.IAlgorithm
reset, reset, setProgressMonitor
 

Method Detail

assignLayers

LayeredGraph assignLayers(KSlimGraph slimGraph,
                          KNode parentNode,
                          float objSpacing,
                          boolean balanceOverSize)
Create a layered graph and assign layers to each node. The input ports must be put into the first layer (rank == 0), the output ports into the last layer (height == 0).

Parameters:
slimGraph - graph structure that contains no directed cycles
parentNode - the parent layout node
objSpacing - the minimal distance between objects
balanceOverSize - indicates whether node balancing has priority over diagram size
Returns:
a layered graph