Learn R Programming

SEMID (version 0.4.1)

trFrom: Trek reachable nodes.

Description

Gets all nodes that are trek reachable from a collection of nodes.

Usage

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), ... )

Arguments

this

the graph object

nodes

the nodes from which to find trek-reachable nodes.

...

ignored.

avoidLeftNodes

a collection of nodes to avoid on the left

avoidRightNodes

a collection of nodes to avoid on the right

includeObserved

if TRUE includes observed nodes in the returned set.

includeLatents

if TRUE includes latent nodes in the returned set.