|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.algo.Bfs
public class Bfs
This class provides services that center around breadth first search (BFS)
Field Summary | |
---|---|
static byte |
DIRECTION_BOTH
Edge direction specifier for both incoming and outgoing edges. |
static byte |
DIRECTION_PREDECESSOR
Edge direction specifier for incoming edges. |
static byte |
DIRECTION_SUCCESSOR
Edge direction specifier for outgoing edges. |
Constructor Summary | |
---|---|
Bfs()
|
Method Summary | |
---|---|
static NodeList[] |
getLayers(Graph graph,
DataProvider isCoreNode)
Like getLayers(Graph,NodeList) , but this time the core nodes
are identified by a boolean predicate. |
static NodeList[] |
getLayers(Graph graph,
DataProvider isCoreNode,
NodeMap layerIDMap)
Like getLayers(Graph,DataProvider) . |
static NodeList[] |
getLayers(Graph graph,
NodeList coreNodes)
Returns layers of nodes constructed by a breadth first search. |
static NodeList[] |
getLayers(Graph graph,
NodeList coreNodes,
boolean directed,
NodeMap layerIDMap)
Returns layers of nodes constructed by a breadth first search. |
static NodeList[] |
getLayers(Graph graph,
NodeList coreNodes,
boolean directed,
NodeMap layerIDMap,
int maxLayers)
Returns layers of nodes constructed by a breadth first search. |
static NodeList[] |
getLayers(Graph graph,
NodeList coreNodes,
byte direction,
NodeMap layerIDMap,
int maxLayers)
Returns layers of nodes constructed by a breadth first search. |
static NodeList[] |
getLayers(Graph graph,
NodeList coreNodes,
NodeMap layerIDMap)
Like getLayers(Graph,NodeList) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte DIRECTION_PREDECESSOR
getLayers(y.base.Graph, y.base.NodeList, byte, y.base.NodeMap, int)
,
Constant Field Valuespublic static final byte DIRECTION_SUCCESSOR
getLayers(y.base.Graph, y.base.NodeList, byte, y.base.NodeMap, int)
,
Constant Field Valuespublic static final byte DIRECTION_BOTH
getLayers(y.base.Graph, y.base.NodeList, byte, y.base.NodeMap, int)
,
Constant Field ValuesConstructor Detail |
---|
public Bfs()
Method Detail |
---|
public static NodeList[] getLayers(Graph graph, NodeList coreNodes)
public static NodeList[] getLayers(Graph graph, DataProvider isCoreNode)
getLayers(Graph,NodeList)
, but this time the core nodes
are identified by a boolean predicate.
public static NodeList[] getLayers(Graph graph, DataProvider isCoreNode, NodeMap layerIDMap)
getLayers(Graph,DataProvider)
. Additionally
the provided node map will be filled with integers that
hold the layer number for each node.
public static NodeList[] getLayers(Graph graph, NodeList coreNodes, NodeMap layerIDMap)
getLayers(Graph,NodeList)
. Additionally
the provided node map will be filled with integers that
hold the layer number for each node.
public static NodeList[] getLayers(Graph graph, NodeList coreNodes, boolean directed, NodeMap layerIDMap)
public static NodeList[] getLayers(Graph graph, NodeList coreNodes, boolean directed, NodeMap layerIDMap, int maxLayers)
graph
- the graph the bfs is running oncoreNodes
- contains the nodes the bfs run starts fromdirected
- true: only outgoing edges are attended, false: all edgeslayerIDMap
- is used to store the layer depths information inmaxLayers
- number of layers that will be returned. "0" for all layers
NodeList
s representing the layerspublic static NodeList[] getLayers(Graph graph, NodeList coreNodes, byte direction, NodeMap layerIDMap, int maxLayers)
graph
- the graph the bfs is running oncoreNodes
- contains the nodes the bfs run starts fromdirection
- specifies which edges to follow. One of
layerIDMap
- is used to store the layer depths information inmaxLayers
- number of layers that will be returned. "0" for all layers
NodeList
s representing the layers
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |