parcours8gn: find the ascendances until blocking

Description Usage Arguments Details Value Examples

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

Description

exploring the parentship, returns a matrix with rows associated to nodes giving their ancestors until (if possible) the first blocking node

Usage

1
parcours8gn(gn, blocked=character(0), imon=TRUE)

Arguments

gn

The gn object to be dealt

blocked

(= character(0)) those nodes which are reference node for blocking

imon

(=TRUE) must blocked node be included?

Details

In a first step the matrix of chidrenhood is calculated which can be expansive when the number of nodes is high.

Value

A square matrix. Its rows corresponds to every node. Its columns are associated to possible ascendants: 0 if not, 1 if it is. The node itself is not included that is the diagonal elements are zero. The row and column order are those of iin; the dimnames of this matrix are given by the node names.

Examples

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

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

Related to parcours8gn in g4n...