Learn R Programming

SEMID (version 0.3.2)

ancestors: All ancestors of a collection of nodes

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

ancestors(this, nodes)

# S3 method for MixedGraphFixedOrder ancestors(this, nodes)

# S3 method for MixedGraph ancestors(this, nodes)

Arguments

this

the mixed graph object

nodes

the nodes from which to find all ancestors