public class Graph<E>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Graph.Finder<E>
A Finder finds the immediate successors of an element of the graph.
|
| Constructor and Description |
|---|
Graph(java.util.Collection<E> roots,
Graph.Finder<E> finder) |
Graph(E root,
Graph.Finder<E> finder) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<E> |
getPostorderList() |
java.util.List<E> |
getPreorderList() |
java.util.Set<E> |
getRoots() |
public Graph(java.util.Collection<E> roots, Graph.Finder<E> finder)
public Graph(E root, Graph.Finder<E> finder)