Converts a directed acyclic graph (DAG) into it's equivalence class corresponding to a completed partially directed acyclic graph (CPDAG).
Examples
dag <- UniformlySampleDAG(LETTERS[1:3])
DAGtoCPDAG(dag)
#> A B C
#> A 0 1 1
#> B 1 0 0
#> C 1 0 0
Converts a directed acyclic graph (DAG) into it's equivalence class corresponding to a completed partially directed acyclic graph (CPDAG).
dag <- UniformlySampleDAG(LETTERS[1:3])
DAGtoCPDAG(dag)
#> A B C
#> A 0 1 1
#> B 1 0 0
#> C 1 0 0