rm8nd4adja: removes somes nodes from an adjacency matrix

Description Usage Arguments Details Value Examples

View source: R/f05.nbnma.code.r

Description

Eliminates from the adjacency matrix (adja)all nodes not breaking the existing links.
Important: the node order in adja must be topological.

Usage

1
rm8nd4adja(adja, nodes)

Arguments

adja

The relation matrix to be consider (same format as those provided by the function adja4nbn. Must be in topological order, roots first.

nodes

Numeric or character vector providing the node numbers to use for the generation of the subset.

Details

When a node is removed, all its parents become parent of its children.

Value

The reduced adjacency matrix.

Examples

1

rbmn documentation built on Jan. 16, 2021, 5:31 p.m.