|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreeplus.tree.BFS
public class BFS
Implementing a Breadth-First-Search
Constructor Summary | |
---|---|
BFS()
|
Method Summary | |
---|---|
static org.jgraph.graph.DefaultGraphCell[] |
buildTree(TreePlusGraph treePlusGraph,
int root,
java.lang.Object[] roots)
Builds a tree out of a given graph and a number of roots. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BFS()
Method Detail |
---|
public static org.jgraph.graph.DefaultGraphCell[] buildTree(TreePlusGraph treePlusGraph, int root, java.lang.Object[] roots)
treePlusGraph
- A graph built out of a adjacency matrix from a provided file.root
- index of tree's root.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |