neighbours8gn: returns the direct parents (or children) of a gn nodes

Description Usage Arguments Details Value Examples

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

Description

Returns the parents/children of all nodes (or all variables according to gn@item) of 'gn'.

Usage

1
neighbours8gn(gn, what="parents")

Arguments

gn

the gn object.

what

either parents or children accordingly.

Details

Parents means direct parents; children means direct children

Value

A list of character vectors containing the names of the parents, each component of the list is associate to an item (node or variable). When there is no parent, character(0) is returned.

Examples

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

g4n documentation built on May 2, 2019, 5:47 p.m.

Related to neighbours8gn in g4n...