Search this API

y.layout.hierarchic
Interface LayerSequencer

All Known Implementing Classes:
ClassicLayerSequencer

public interface LayerSequencer

This interface calculates the order of the nodes within each layer into which the graph has been partitioned.

 

Method Summary
 NodeList[] getLayers(LayoutGraph graph, NodeMap layerID, int maxLayer)
          Calculates the sequence of nodes within each layer.
 

Method Detail

getLayers

NodeList[] getLayers(LayoutGraph graph,
                     NodeMap layerID,
                     int maxLayer)
Calculates the sequence of nodes within each layer.

The result is returned as an array of NodeLists containing nodes that belong to the same layer. The order of the nodes within such list represents the sequence of the nodes within their layer.

Parameters:
graph - the input graph
layerID - the NodeMap that returns the zero-based index of the layer to which each node belongs
maxLayer - the number of layers
Returns:
an array of NodeLists containing nodes that belong to the same layer; the order of the nodes within each such list represents the sequence of the nodes within their layer

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.