powered by
Given a BN object with a dag, return a network with its wpdag set as the CPDAG computed starting from the dag.
BN
dag
wpdag
wpdag.from.dag(x, layering = NULL)# S4 method for BN wpdag.from.dag(x, layering = NULL)
# S4 method for BN wpdag.from.dag(x, layering = NULL)
a BN object.
vector containing the layers each node belongs to.
a BN object with an initialized wpdag.
dag.to.cpdag
# NOT RUN { net <- learn.network(dataset, layering=layering) wp.net <- wpdag.from.dag(net, layering) # } # NOT RUN { # }
Run the code above in your browser using DataLab