Learn R Programming

rbmn (version 0.9-6)

rm8nd4adja: 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)

Value

The reduced adjacency matrix.

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.

Examples

Run this code
 rm8nd4adja(rbmn0adja.04, "1.1");

Run the code above in your browser using DataLab