Class SimplePathBfsIterator<V,E>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<List<NestedPath<V,E>>>
org.aksw.jena_sparql_api.sparql_path2.SimplePathBfsIterator<V,E>
- All Implemented Interfaces:
Iterator<List<NestedPath<V,E>>>
public class SimplePathBfsIterator<V,E>
extends com.google.common.collect.AbstractIterator<List<NestedPath<V,E>>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<NestedPath<V,E>> protected Predicate<NestedPath<V,E>> -
Constructor Summary
ConstructorsConstructorDescriptionSimplePathBfsIterator(org.jgrapht.Graph<V, E> graph, Collection<V> start, Predicate<NestedPath<V, E>> isAccepted) -
Method Summary
Modifier and TypeMethodDescriptionstatic <V,E> List<NestedPath<V, E>> advanceFrontier(org.jgrapht.Graph<V, E> graph, Collection<NestedPath<V, E>> paths) static <V,E> List<NestedPath<V, E>> collectPaths(List<NestedPath<V, E>> paths, Predicate<NestedPath<V, E>> predicate) protected List<NestedPath<V,E>> Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
graph
-
frontier
-
isAccepted
-
-
Constructor Details
-
SimplePathBfsIterator
public SimplePathBfsIterator(org.jgrapht.Graph<V, E> graph, Collection<V> start, Predicate<NestedPath<V, E>> isAccepted)
-
-
Method Details
-
collectPaths
public static <V,E> List<NestedPath<V,E>> collectPaths(List<NestedPath<V, E>> paths, Predicate<NestedPath<V, E>> predicate) -
advanceFrontier
public static <V,E> List<NestedPath<V,E>> advanceFrontier(org.jgrapht.Graph<V, E> graph, Collection<NestedPath<V, E>> paths) -
computeNext
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<List<NestedPath<V,E>>>
-