layering: return the layering of the nodes.

Description Usage Arguments Value Examples

Description

Compute the topological ordering of the nodes of a network, in order to divide the network in layers.

Usage

1
2
3
4
layering(x)

## S4 method for signature 'BN'
layering(x)

Arguments

x

a BN object.

Value

a vector containing layers the nodes can be divided into.

Examples

1
2
3
4
5
6
7
## Not run: 
dataset <- BNDataset("file.header", "file.data")
x <- BN(dataset)
x <- learn.network(x, dataset)
layering(x)

## End(Not run)

tavazzie/bnstructScore documentation built on Dec. 23, 2021, 7:47 a.m.