porder: finds a parentship order onto the nodes and more

Description Usage Arguments Details Value Examples

Description

(bn) Proposes an order exploring the parentship of the nodes, such that parents are always before their children. Such an order can be used for drawing from the joint distribution.

Usage

1
porder(bgn)

Arguments

bgn

The bn or gn object

Details

This assumes no cycle within the graph. If so, the fact is discovered, a message is issued and the function stops the program.
No check is made about the argument.

Value

order: a compatible order for the calculation of the joint probability. It is given with respect to the "nk/vk" numbering.

Examples

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

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

Related to porder in rebastaba...