|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.pfl.basic.algorithm.Graph<E>
public class Graph<E>
| Nested Class Summary | |
|---|---|
static interface |
Graph.Finder<E>
A Finder finds the immediate successors of an element of the graph. |
| Constructor Summary | |
|---|---|
Graph(java.util.Collection<E> roots,
Graph.Finder<E> finder)
|
|
Graph(E root,
Graph.Finder<E> finder)
|
|
| Method Summary | |
|---|---|
java.util.List<E> |
getPostorderList()
|
java.util.List<E> |
getPreorderList()
|
java.util.Set<E> |
getRoots()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Graph(java.util.Collection<E> roots,
Graph.Finder<E> finder)
public Graph(E root,
Graph.Finder<E> finder)
| Method Detail |
|---|
public java.util.Set<E> getRoots()
public java.util.List<E> getPreorderList()
public java.util.List<E> getPostorderList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||