Classes implementing this interface calculate the order of nodes within the different layers that the graph has been partitioned into.
public function getLayers(g:LayoutGraph, layerID:NodeMap, maxLayer:int):Vector.<Object>
Calculates the sequence of nodes within each layer.
Parameters
| g:LayoutGraph — the graph being acted upon
|
|
| layerID:NodeMap — provides for each node an integral number signifying the layer of that node. The first layer has the number 0.
|
|
| maxLayer:int — the number of different layers
|
Returns | Vector.<Object> — an array of length maxLayer containing node lists. Each node list contains the nodes of a corresponding layer. The order of the nodes within each node list represents the sequence of the nodes within their layer.
|
Wed Oct 7 2015, 04:43 PM +02:00