powered by
Compute the topological ordering of the nodes of a network, in order to divide the network in layers.
layering(x)# S4 method for BN layering(x)
# S4 method for BN layering(x)
a BN object.
BN
a vector containing layers the nodes can be divided into.
# NOT RUN { dataset <- BNDataset("file.header", "file.data") x <- BN(dataset) x <- learn.network(x, dataset) layering(x) # } # NOT RUN { # }
Run the code above in your browser using DataLab