causal_networkx.algorithms.dag2cpdag# causal_networkx.algorithms.dag2cpdag(graph)[source]# Convert a DAG to a completed partially directed acyclic graph. Runs the PC algorithm with an Oracle to obtain the CPDAG. This is useful to obtain the best possible CPDAG one can obtain for a certain graph using data. Parameters: graph : DAG The causal DAG. Returns: cpdag : CPDAG The oracle CPDAG. :rtype:py:class:CPDAG