ind8bgn: returns the nodes between two nodes

Description Usage Arguments Details Value Examples

Description

(bn) From a bn/gn structure, and two related nodes (first being an ancestor of second) of it, the set of all nodes having them as ascendant and descendant (intermediate nodes) is returned. Notice that the starting and ending nodes are not returned.

Usage

1
ind8bgn(bgn, ion)

Arguments

bgn

The original bn or gn.

ion

A pair of nodes (not variables) of bgn.

Details

No checks about bgn

Value

The set of concerned nodes without the ion nodes as a named numeric. So a returned numeric(0) means that ion[1] is a direct parent of ion[2].

Examples

1
2
3
4
 rebastaba3k("RESET"); # (only for R checking)
 ind8bgn(rebastaba.bn1, c(1, 3));
 ind8bgn(rebastaba.bn1, c(2, 3));
 ## Not run: ind8bgn(rebastaba.bn2, c(2, 1))

rebastaba documentation built on May 2, 2019, 5:24 p.m.

Related to ind8bgn in rebastaba...