Gets all nodes that are trek reachable from a collection of nodes.
trFrom(this, nodes, ...)# S3 method for LatentDigraphFixedOrder
trFrom(
this,
nodes,
avoidLeftNodes = integer(0),
avoidRightNodes = integer(0),
includeObserved = T,
includeLatents = T,
...
)
# S3 method for LatentDigraph
trFrom(
this,
nodes,
avoidLeftNodes = integer(0),
avoidRightNodes = integer(0),
includeObserved = T,
includeLatents = T,
...
)
# S3 method for MixedGraph
trFrom(
this,
nodes,
avoidLeftNodes = integer(0),
avoidRightNodes = integer(0),
...
)
the graph object
the nodes from which to find trek-reachable nodes.
ignored.
a collection of nodes to avoid on the left
a collection of nodes to avoid on the right
if TRUE includes observed nodes in the returned set.
if TRUE includes latent nodes in the returned set.