powered by
Convert the adjacency matrix representing the DAG of a BN into the adjacency matrix representing a CPDAG for the network.
BN
dag.to.cpdag(dag.adj.matrix, layering = NULL)
the adjacency matrix representing the DAG of a BN.
vector containing the layers each node belongs to.
the adjacency matrix representing a CPDAG for the network.
wpdag.from.dag
# NOT RUN { net <- learn.network(dataset, layering=layering) pdag <- dag.to.cpdag(dag(net), layering) wpdag(net) <- pdag # } # NOT RUN { # }
Run the code above in your browser using DataLab