connect8bgn: determines if a bn/gn is connected

Description Usage Arguments Value Examples

View source: R/f1.rsbn.code.r

Description

(bn) exploring the links between nodes returns the sub-sets of connected nodes.

Usage

1

Arguments

bgn

the /bn/ or /gn/ object to investigate

Value

A list with two components $nodes and $group. Each component is a named vectors either of the groups to which belongs each node, or the nodes belonging to each group. For instance, $nodes is a vector associated to the nodes indicating the subsets (or groups). If $nodes[3] equals 2 this means that the third iin node belongs to the second subset. The number of subsets is then max($nodes) = length($group). The numbering of the groups is done in decreasing order of their size.

Examples

1
2
3
4
5
 rebastaba3k("RESET"); # (only for R checking)
 connect8bgn(rebastaba.bn0);
 connect8bgn(rebastaba.bn3);
 connect8bgn(g4n.gn1);
 connect8bgn(g4n.gn6);

rebastaba documentation built on May 31, 2017, 3:26 a.m.