ends8gn: returns the root and leaf nodes/variables of a gn

Description Usage Arguments Details Value Examples

View source: R/f0.g4n1.code.r

Description

From a /gn/ object, the set of nodes/variables is partitioned in four classes:
(i) the root and leaf nodes/variables,
(ii) the root but not leaf nodes/variables,
(iii) the leaf but not root nodes/variables,
(iv) the remaining nodes/variables.
Of course, some of the classes can be empty.

Usage

1
ends8gn(gn)

Arguments

gn

The gn.

Details

No check about gn

Value

a list of four named numeric vectors with the iin of the corresponding nodes/variables and the names as names. The four items are \$RaL (root and leaf), \$RwL (root but not leaf), \$LwR (leaf but not root) and \$rema (the remaining nodes/variables).

Examples

1
2
 g4n3k("RESET"); # needed only for R checking, to be forgotten
 ends8gn(g4n.gn7);

g4n documentation built on May 31, 2017, 3:53 a.m.

Related to ends8gn in g4n...