Package | com.yworks.yfiles.layout.hierarchic |
Class | public class BFSLayerer |
Inheritance | BFSLayerer YObject Object |
Implements | OldLayerer, Layerer |
See also
Method | Defined By | ||
---|---|---|---|
BFSLayerer(init:Boolean = true) | BFSLayerer | ||
BFSLayerer | |||
This method assigns the nodes in the graph to layers. | BFSLayerer | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | BFSLayerer | ||
hashCode():int | YObject | ||
[static] | BFSLayerer |
Method | Defined By | ||
---|---|---|---|
initBFSLayerer():void
Initializes this object. | BFSLayerer |
Constant | Defined By | ||
---|---|---|---|
CORE_NODES : Object [static]
The data provider key used to look up the core nodes of the bfs layering. | BFSLayerer |
BFSLayerer | () | Constructor |
public function BFSLayerer(init:Boolean = true)
Parameters
init:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
assignLayers | () | method |
public function assignLayers(graph:LayoutGraph, layers:Layers, ldp:LayoutDataProvider):void
Parameters
graph:LayoutGraph | |
layers:Layers | |
ldp:LayoutDataProvider |
assignNodeLayer | () | method |
public function assignNodeLayer(graph:LayoutGraph, layer:NodeMap, reversedEdges:EdgeList):int
This method assigns the nodes in the graph to layers.
Postcondition Forall (v,w) in E: layer(v) < layer(w)
Parameters
graph: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.
|
int — the number of layers
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initBFSLayerer | () | method |
protected final function initBFSLayerer():void
Initializes this object. See the documentation of the corresponding factory method newBFSLayerer()
for details.
See also
newBFSLayerer | () | method |
CORE_NODES | Constant |
public static const CORE_NODES:Object
The data provider key used to look up the core nodes of the bfs layering. The BFSLayerer will try to retrieve a data provider from the graph to be layered with this key. The looked up data provider should provide boolean values for the nodes of that graph. The boolean value signals whether a node is to be placed in the first layer or not.
If the are no nodes marked as core nodes then nodes with indegree 0 are considered to be core nodes.