Class Graph<E>
java.lang.Object
org.glassfish.pfl.basic.algorithm.Graph<E>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
A Finder finds the immediate successors of an element of the graph. -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionGraph
(E root, Graph.Finder<E> finder) Graph
(Collection<E> roots, Graph.Finder<E> finder) -
Method Summary
Modifier and TypeMethodDescriptiongetRoots()
private void
init
(Collection<E> roots, Graph.Finder<E> finder) private void
-
Field Details
-
roots
-
preorderTraversal
-
postorderTraversal
-
-
Constructor Details
-
Graph
-
Graph
-
-
Method Details
-
traverse
-
init
-
getRoots
-
getPreorderList
-
getPostorderList
-