|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.algo.Bfs
This class provides services that center around breadth first search (BFS)
Constructor Summary | |
Bfs()
|
Method Summary | |
static NodeList[] |
getLayers(Graph graph,
DataProvider isCoreNode)
Like Bfs.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 Bfs.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,
NodeMap layerIDMap)
Like Bfs.getLayers(Graph,NodeList) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Bfs()
Method Detail |
public static NodeList[] getLayers(Graph graph, NodeList coreNodes)
In the i-th layer are previously unassigned nodes that are connected to nodes in the (i-1)-th layer.
public static NodeList[] getLayers(Graph graph, DataProvider isCoreNode)
Bfs.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)
Bfs.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)
Bfs.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)
In the i-th layer are previously unassigned nodes that are successors to nodes in the (i-1)-th layer.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |