public class TransitiveClosure
extends java.lang.Object
For example:
A = SomeDistribution(...) B = A.cos() C = SomeDistribution(B, ...) D = C.times(2)
The downstream Transitive Closure of A would be [A, B, C, D] The upstream Transitive Closure of D would be [D, C, B, A] The upstream Transitive Closure of C would be [C, B, A]
Modifier and Type | Method and Description |
---|---|
static TransitiveClosure |
getDownstreamVertices(Vertex<?> aVertex,
boolean includeNonProbabilistic) |
static TransitiveClosure |
getDownstreamVerticesForCollection(java.util.List<Vertex> vertices,
boolean includeNonProbabilistic) |
static TransitiveClosure |
getUpstreamVertices(Vertex<?> aVertex,
boolean includeNonProbabilistic) |
static TransitiveClosure |
getUpstreamVerticesForCollection(java.util.List<Vertex> vertices,
boolean includeNonProbabilistic) |
public static TransitiveClosure getUpstreamVertices(Vertex<?> aVertex, boolean includeNonProbabilistic)
aVertex
- the starting vertexincludeNonProbabilistic
- false if only the probabilistic or observed vertices are wantedpublic static TransitiveClosure getDownstreamVertices(Vertex<?> aVertex, boolean includeNonProbabilistic)
aVertex
- the starting vertexincludeNonProbabilistic
- false if only the probabilistic and observed are wantedpublic static TransitiveClosure getUpstreamVerticesForCollection(java.util.List<Vertex> vertices, boolean includeNonProbabilistic)
vertices
- the starting verticesincludeNonProbabilistic
- false if only the probabilistic or observed vertices are wantedpublic static TransitiveClosure getDownstreamVerticesForCollection(java.util.List<Vertex> vertices, boolean includeNonProbabilistic)
vertices
- the starting verticesincludeNonProbabilistic
- false if only the probabilistic or observed vertices are wanted