descendants: Get descendants of a collection of observed nodes

View source: R/LatentDigraph.R

descendantsR Documentation

Get descendants of a collection of observed nodes

Description

Finds all descendants of a collection of nodes, this DOES include the nodes themselves (every node is considered a descendant of itself).

Usage

descendants(this, nodes, ...)

## S3 method for class 'LatentDigraphFixedOrder'
descendants(this, nodes, includeObserved = T, includeLatents = T, ...)

## S3 method for class 'LatentDigraph'
descendants(this, nodes, includeObserved = T, includeLatents = T, ...)

## S3 method for class 'MixedGraph'
descendants(this, nodes, ...)

Arguments

this

the graph object

nodes

the nodes from which to get the descendants.

...

ignored.

includeObserved

if TRUE includes observed nodes in the returned set.

includeLatents

if TRUE includes latent nodes in the returned set.


Lucaweihs/SEMID documentation built on July 22, 2023, 7:49 a.m.