Package | com.yworks.yfiles.algo |
Class | public class Bfs |
Inheritance | Bfs YObject Object |
Method | Defined By | ||
---|---|---|---|
Bfs(init:Boolean = true) | Bfs | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | Bfs | ||
[static]
Returns layers of nodes constructed by a breadth first search. | Bfs | ||
[static]
Like getLayers(), but this time the core nodes are identified by a boolean predicate. | Bfs | ||
[static]
Like getLayers2(). | Bfs | ||
[static]
Like getLayers(). | Bfs | ||
[static]
Returns layers of nodes constructed by a breadth first search. | Bfs | ||
getLayers6(graph:Graph, coreNodes:NodeList, directed:Boolean, layerIDMap:NodeMap, maxLayers:int):Vector.<Object> [static]
Returns layers of nodes constructed by a breadth first search. | Bfs | ||
getLayers7(graph:Graph, coreNodes:NodeList, direction:int, layerIDMap:NodeMap, maxLayers:int):Vector.<Object> [static]
Returns layers of nodes constructed by a breadth first search. | Bfs | ||
hashCode():int | YObject | ||
[static] | Bfs |
Method | Defined By | ||
---|---|---|---|
initBfs():void | Bfs |
Constant | Defined By | ||
---|---|---|---|
DIRECTION_BOTH : int = 3 [static]
Edge direction specifier for both incoming and outgoing edges. | Bfs | ||
DIRECTION_PREDECESSOR : int = 1 [static]
Edge direction specifier for incoming edges. | Bfs | ||
DIRECTION_SUCCESSOR : int = 2 [static]
Edge direction specifier for outgoing edges. | Bfs |
Bfs | () | Constructor |
public function Bfs(init:Boolean = true)
init:Boolean (default = true )
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getLayers | () | method |
public static function getLayers(graph:Graph, coreNodes:NodeList):Vector.<Object>
Returns layers of nodes constructed by a breadth first search. The first of these layers contains all nodes within the given NodeList. These nodes are the core nodes from where an undirected breath first search to the other nodes starts.
In the i-th layer are previously unassigned nodes that are connected to nodes in the (i-1)-th layer.Complexity O(graph.N()+graph.E())
Parameters
graph:Graph | |
coreNodes:NodeList |
Vector.<Object> |
getLayers2 | () | method |
public static function getLayers2(graph:Graph, isCoreNode:DataProvider):Vector.<Object>
Like getLayers(), but this time the core nodes are identified by a boolean predicate.
Precondition isCoreNode.getBool(node) defined for all nodes in graph.
Parameters
graph:Graph | |
isCoreNode:DataProvider |
Vector.<Object> |
See also
getLayers3 | () | method |
public static function getLayers3(graph:Graph, isCoreNode:DataProvider, layerIDMap:NodeMap):Vector.<Object>
Like getLayers2(). Additionally the provided node map will be filled with integers that hold the layer number for each node.
Parameters
graph:Graph | |
isCoreNode:DataProvider | |
layerIDMap:NodeMap |
Vector.<Object> |
See also
getLayers4 | () | method |
public static function getLayers4(graph:Graph, coreNodes:NodeList, layerIDMap:NodeMap):Vector.<Object>
Like getLayers(). Additionally the provided node map will be filled with integers that hold the layer number for each node.
Parameters
graph:Graph | |
coreNodes:NodeList | |
layerIDMap:NodeMap |
Vector.<Object> |
See also
getLayers5 | () | method |
public static function getLayers5(graph:Graph, coreNodes:NodeList, directed:Boolean, layerIDMap:NodeMap):Vector.<Object>
Returns layers of nodes constructed by a breadth first search. The first of these layers contains all nodes within the given NodeList. These nodes are the core nodes from where either a directed or undirected breath first search to the other nodes starts.
In the i-th layer are previously unassigned nodes that are successors to nodes in the (i-1)-th layer.Complexity O(graph.N()+graph.E())
Parameters
graph:Graph | |
coreNodes:NodeList | |
directed:Boolean | |
layerIDMap:NodeMap |
Vector.<Object> |
getLayers6 | () | method |
public static function getLayers6(graph:Graph, coreNodes:NodeList, directed:Boolean, layerIDMap:NodeMap, maxLayers:int):Vector.<Object>
Returns layers of nodes constructed by a breadth first search. The first of these layers contains all nodes within the given NodeList. These nodes are the core nodes from where either a directed or undirected breath first search to the other nodes starts.
In the i-th layer are previously unassigned nodes that are successors to nodes in the (i-1)-th layer.Complexity O(graph.N()+graph.E())
Parameters
graph:Graph — the graph the bfs is running on
| |
coreNodes:NodeList — contains the nodes the bfs run starts from
| |
directed:Boolean — true: only outgoing edges are attended, false: all edges
| |
layerIDMap:NodeMap — is used to store the layer depths information in
| |
maxLayers:int — number of layers that will be returned. "0" for all layers
|
Vector.<Object> — an array of com.yworks.yfiles.base.NodeList s representing the layers
|
See also
getLayers7 | () | method |
public static function getLayers7(graph:Graph, coreNodes:NodeList, direction:int, layerIDMap:NodeMap, maxLayers:int):Vector.<Object>
Returns layers of nodes constructed by a breadth first search. The first of these layers contains all nodes within the given NodeList. These nodes are the core nodes from where either a directed or undirected breath first search to the other nodes starts.
In the i-th layer are previously unassigned nodes that are successors to nodes in the (i-1)-th layer.Complexity O(graph.N()+graph.E())
Parameters
graph:Graph — the graph the bfs is running on
| |
coreNodes:NodeList — contains the nodes the bfs run starts from
| |
direction:int — specifies which edges to follow. One of
| |
layerIDMap:NodeMap — is used to store the layer depths information in
| |
maxLayers:int — number of layers that will be returned. "0" for all layers
|
Vector.<Object> — an array of com.yworks.yfiles.base.NodeList s representing the layers
|
See also
initBfs | () | method |
protected final function initBfs():void
newBfs | () | method |
DIRECTION_BOTH | Constant |
public static const DIRECTION_BOTH:int = 3
Edge direction specifier for both incoming and outgoing edges.
See also
DIRECTION_PREDECESSOR | Constant |
public static const DIRECTION_PREDECESSOR:int = 1
Edge direction specifier for incoming edges.
See also
DIRECTION_SUCCESSOR | Constant |
public static const DIRECTION_SUCCESSOR:int = 2
Edge direction specifier for outgoing edges.
See also