cycle8bgn: detects if a cycle exists in a bn/gn object

Description Usage Arguments Details Value Examples

Description

(bn) This function returns TRUE or FALSE if at least one cycle is detected within the graph of the bgn object. It is intended to protect other function which arises fatal errors in such a situation (for instance porder).

Usage

1
cycle8bgn(bgn)

Arguments

bgn

The bn or gn object

Details

No check is performed on the class of bgn

Value

logical variable (TRUE: at least a cycle, FALSE : no cycle).

Examples

1
2
 rebastaba3k("RESET"); # (only for R checking)
 cycle8bgn(rebastaba.bn2);

rebastaba documentation built on May 2, 2019, 5:24 p.m.