rm8nd4adja: removes somes nodes from an adjacency matrix

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

rm8nd4adjaR Documentation

removes somes nodes from an adjacency matrix

Description

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

Usage

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

 rm8nd4adja(rbmn0adja.04, "1.1");

rbmn documentation built on April 7, 2022, 9:05 a.m.