Packagecom.yworks.yfiles.layout.hierarchic
Interfacepublic interface OldLayerer
Implementors AsIsLayerer, BFSLayerer, ConstraintLayerer, GivenLayersLayerer, TopologicalLayerer, WeightedLayerer

This is the interface to the node layering phase of the hierarchic layouter. Implementations of this class must partition the nodes of the input graph in hierarchic layers.

See also

com.yworks.yfiles.layout.hierarchic.AsIsLayerer
com.yworks.yfiles.layout.hierarchic.BFSLayerer
com.yworks.yfiles.layout.hierarchic.ConstraintLayerer
com.yworks.yfiles.layout.hierarchic.GivenLayersLayerer
com.yworks.yfiles.layout.hierarchic.TopologicalLayerer
com.yworks.yfiles.layout.hierarchic.WeightedLayerer


Public Methods
 MethodDefined By
  
assignNodeLayer(g:LayoutGraph, layer:NodeMap, reversedEdges:EdgeList):int
This method assigns the nodes in the graph to layers.
OldLayerer
Method Detail
assignNodeLayer()method
public function assignNodeLayer(g:LayoutGraph, layer:NodeMap, reversedEdges:EdgeList):int

This method assigns the nodes in the graph to layers.

Parameters

g:LayoutGraph — the graph for which the layers are determined.
 
layer:NodeMap — here the layers are stored
 
reversedEdges:EdgeList — here the edges are stored which had been reversed.

Returns
int — the number of layers