| dag_from_pdag | R Documentation |
Given a Partially Directed Acyclic Graph (PDAG), this function attempts to extend it to a Directed Acyclic Graph (DAG) by orienting the undirected edges while preserving acyclicity and all existing directed edges. The procedure implements the Dor-Tarsi algorithm.
If the PDAG cannot be consistently extended to a DAG, the function will raise an error.
dag_from_pdag(cg, PDAG)
cg |
A |
PDAG |
Deprecated alias for |
A caugi object of class "DAG" representing a DAG extension
of the input PDAG.
Dor, D., & Tarsi, M. (1992). "A simple algorithm to construct a consistent extension of a partially directed acyclic graph".
Other operations:
condition_marginalize(),
count_dags(),
enumerate_dags(),
exogenize(),
latent_project(),
meek_closure(),
moralize(),
mutate_caugi(),
normalize_latent_structure(),
skeleton()
pdag <- caugi(
A %---% B,
B %---% C,
class = "PDAG"
)
dag <- dag_from_pdag(pdag)
edges(dag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.