public class Propagation
extends java.lang.Object
Constructor and Description |
---|
Propagation() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<Vertex> |
getVertices(java.util.List<Vertex> vertices,
java.util.function.Function<Vertex,java.util.Collection<Vertex>> nextVertices,
java.util.function.Function<Vertex,java.lang.Boolean> stoppingCondition,
java.util.function.Predicate<Vertex> shouldAdd) |
static java.util.Set<Vertex> |
getVertices(Vertex vertex,
java.util.function.Function<Vertex,java.util.Collection<Vertex>> nextVertices,
java.util.function.Function<Vertex,java.lang.Boolean> stoppingCondition,
java.util.function.Predicate<Vertex> shouldAdd) |
public static java.util.Set<Vertex> getVertices(Vertex vertex, java.util.function.Function<Vertex,java.util.Collection<Vertex>> nextVertices, java.util.function.Function<Vertex,java.lang.Boolean> stoppingCondition, java.util.function.Predicate<Vertex> shouldAdd)
public static java.util.Set<Vertex> getVertices(java.util.List<Vertex> vertices, java.util.function.Function<Vertex,java.util.Collection<Vertex>> nextVertices, java.util.function.Function<Vertex,java.lang.Boolean> stoppingCondition, java.util.function.Predicate<Vertex> shouldAdd)
vertices
- vertices to start propagation fromnextVertices
- The next vertices to move to given a current vertex. E.g getChildren for downstream or
getParents for upstream.shouldAdd
- true when a given vertex should be included in the result, false otherwisestoppingCondition
- true when a given vertex should be stopped at