ordering: Partial node orderings

Description Usage Arguments Value Note Author(s) Examples

Description

Find the partial node ordering implied by a network.

Usage

1

Arguments

x

an object of class bn or bn.fit.

debug

a boolean value. If TRUE a lot of debugging output is printed; otherwise the function is completely silent.

Value

node.ordering() returns a vector of character strings, an ordered set of node labels.

Note

node.ordering() supports only completely directed Bayesian networks.

Author(s)

Marco Scutari

Examples

1
2
3
dag = random.graph(LETTERS[1:10])
ord = node.ordering(dag)
ord

Example output

Attaching package: 'bnlearn'

The following object is masked from 'package:stats':

    sigma

 [1] "A" "B" "C" "I" "D" "E" "H" "F" "G" "J"

bnlearn documentation built on Sept. 7, 2021, 1:07 a.m.