Class BreadthFirstSearchLib
java.lang.Object
org.aksw.commons.util.traverse.BreadthFirstSearchLib
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BreadthFirstSearchLib
public BreadthFirstSearchLib()
-
-
Method Details
-
stream
public static <T, C extends Collection<T>> Stream<C> stream(C current, Function<? super T, ? extends Stream<? extends T>> successorFn, Supplier<? extends Collector<T, ?, C>> collectorSupplier) For a given collection of nodes return the collection of successors w.r.t. sucessorFn. The successor function can be used to filter items..- Type Parameters:
T-C-- Parameters:
current-successorFn-collectorSupplier-- Returns:
-