getAncestors: Get getAncestors of nodes in a graph.

View source: R/ancestralID.R

getAncestorsR Documentation

Get getAncestors of nodes in a graph.

Description

Get the getAncestors of a collection of nodes in a graph g, the getAncestors DO include the the nodes themselves.

Usage

getAncestors(g, nodes)

Arguments

g

the graph (as an igraph).

nodes

the nodes in the graph of which to get the getAncestors.

Value

a sorted vector of all ancestor nodes.


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