public class GraphProcessor<V,E>
extends java.lang.Object
implements java.lang.Iterable<V>
Modifier and Type | Class and Description |
---|---|
class |
GraphProcessor.Process |
Modifier | Constructor and Description |
---|---|
protected |
GraphProcessor(Graph<V,E> graph) |
Modifier and Type | Method and Description |
---|---|
GraphProcessor<V,E> |
from(java.util.Collection<? extends V> initial) |
java.util.Iterator<V> |
iterator() |
static <V,E> GraphProcessor<V,E> |
over(Graph<V,E> graph) |
GraphProcessor<V,E> |
parallel() |
GraphProcessor<V,E> |
process(java.util.function.Consumer<? super V> process) |
java.util.List<V> |
processEager() |
java.util.List<V> |
processEagerParallel() |
public static <V,E> GraphProcessor<V,E> over(Graph<V,E> graph)
public GraphProcessor<V,E> from(java.util.Collection<? extends V> initial)
public GraphProcessor<V,E> process(java.util.function.Consumer<? super V> process)
public GraphProcessor<V,E> parallel()
public java.util.List<V> processEager()
public java.util.List<V> processEagerParallel()