ancestors: All ancestors of a collection of nodes

Description Usage Arguments Value

Description

Finds all the ancestors of a collection of nodes. These ancestors DO include the nodes themselves (every node is considered an ancestor of itself).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ancestors(this, nodes, ...)

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

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

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

Arguments

this

the graph object

nodes

the nodes from which to find all ancestors

includeObserved

if TRUE includes observed nodes in the returned set.

includeLatents

if TRUE includes latent nodes in the returned set.

Value

the ancestors of the nodes in the observed part of the graph.


Lucaweihs/SEMID documentation built on June 3, 2019, 2:13 a.m.