Learn R Programming

bnstruct (version 1.0.15)

layering: return the layering of the nodes.

Description

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

Usage

layering(x)

# S4 method for BN layering(x)

Value

a vector containing layers the nodes can be divided into.

Arguments

x

a BN object.

Examples

Run this code
if (FALSE) {
dataset <- BNDataset("file.header", "file.data")
x <- BN(dataset)
x <- learn.network(x, dataset)
layering(x)
}

Run the code above in your browser using DataLab