Initialize a WPDAG from a DAG.
wpdag.from.dag.Rd
Given a BN
object with a dag
, return a network
with its wpdag
set as the CPDAG computed starting from the dag
.
Arguments
- x
a
BN
object.- layering
vector containing the layers each node belongs to.
Value
a BN
object with an initialized wpdag
.
Examples
if (FALSE) {
net <- learn.network(dataset, layering=layering)
wp.net <- wpdag.from.dag(net, layering)
}