convert a DAG to a CPDAG
dag.to.cpdag.Rd
Convert the adjacency matrix representing the DAG of a BN
into the adjacency matrix representing a CPDAG for the network.
Arguments
- dag.adj.matrix
the adjacency matrix representing the DAG of a
BN
.- layering
vector containing the layers each node belongs to.
Examples
if (FALSE) {
net <- learn.network(dataset, layering=layering)
pdag <- dag.to.cpdag(dag(net), layering)
wpdag(net) <- pdag
}