return the layering of the nodes.
layering.Rd
Compute the topological ordering of the nodes of a network, in order to divide the network in layers.
Arguments
- x
a
BN
object.
Examples
if (FALSE) {
dataset <- BNDataset("file.header", "file.data")
x <- BN(dataset)
x <- learn.network(x, dataset)
layering(x)
}