pdag2dag function

Extend a Partially Directed Acyclic Graph (PDAG) to a DAG