| is_admg | R Documentation |
caugi graph an ADMG?Checks if the given caugi graph is an
Acyclic Directed Mixed Graph (ADMG).
An ADMG contains only directed (-->) and bidirected (<->) edges,
and the directed part must be acyclic.
is_admg(cg, force_check = FALSE)
cg |
A |
force_check |
Logical; if |
A logical value indicating whether the graph is an ADMG.
Other queries:
ancestors(),
anteriors(),
children(),
components(),
descendants(),
districts(),
edge_types(),
edges(),
exogenous(),
is_acyclic(),
is_ag(),
is_caugi(),
is_cpdag(),
is_dag(),
is_empty_caugi(),
is_mag(),
is_mpdag(),
is_pdag(),
is_simple(),
is_ug(),
m_separated(),
markov_blanket(),
neighbors(),
nodes(),
parents(),
posteriors(),
same_nodes(),
spouses(),
subgraph(),
topological_sort()
cg_admg <- caugi(
A %-->% B,
A %<->% C,
class = "ADMG"
)
is_admg(cg_admg) # TRUE
cg_dag <- caugi(
A %-->% B,
class = "DAG"
)
is_admg(cg_dag) # TRUE (DAGs are valid ADMGs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.