minbar8gn: finds the minimum number of arcs between nodes of a gn object

Description Usage Arguments Details Value Examples

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

Description

Finds the minimum number of arcs between nodes of a gn object. To do so, the parentship is explored and a matrix is returned. This matrix is similar to the pam matrix but is richer. Its rows and columns are associated to each node. [i,j] is the minimum number of arcs to follow to go from node i to node j. When this is not possible, a value of -1 is introduced.

Usage

1

Arguments

gn

The gn object to be investigated

Details

Own nodes are considered as zero distance children (in other words the diagonal of the resulting matrix is not -1 but 0).

Value

a matrix (see DESCRIPTION field)

Examples

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

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

Related to minbar8gn in g4n...