dag.to.cpdag {bnstruct} | R Documentation |
Convert the adjacency matrix representing the DAG of a BN
into the adjacency matrix representing a CPDAG for the network.
dag.to.cpdag(dag.adj.matrix, layering = NULL)
dag.adj.matrix |
the adjacency matrix representing the DAG of a |
layering |
vector containing the layers each node belongs to. |
the adjacency matrix representing a CPDAG for the network.
## Not run: net <- learn.network(dataset, layering=layering) pdag <- dag.to.cpdag(dag(net), layering) wpdag(net) <- pdag ## End(Not run)