returns the root and leaf nodes/variables of a gn

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);

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.