Orients as many edges as possible in a partially directed acyclic graph (PDAG) by converting induced subgraphs X -> Y -- Z to X -> Y -> Z.
orientPDAG(x)
the input graph, a PDAG.
# NOT RUN { orientPDAG( "pdag { x -> y -- z }" ) # }
Run the code above in your browser using DataCamp Workspace