| is_simple | R Documentation |
caugi graph simple?Checks if the given caugi graph is simple (no self-loops and
no parallel edges).
is_simple(cg, force_check = FALSE)
cg |
A |
force_check |
Logical; if |
A logical value indicating whether the graph is simple.
Other queries:
ancestors(),
anteriors(),
children(),
components(),
descendants(),
districts(),
edge_types(),
edges(),
exogenous(),
is_acyclic(),
is_admg(),
is_ag(),
is_caugi(),
is_cpdag(),
is_dag(),
is_empty_caugi(),
is_mag(),
is_mpdag(),
is_pdag(),
is_ug(),
m_separated(),
markov_blanket(),
neighbors(),
nodes(),
parents(),
posteriors(),
same_nodes(),
spouses(),
subgraph(),
topological_sort()
cg_simple <- caugi(
A %-->% B,
class = "DAG"
)
is_simple(cg_simple) # TRUE
cg_nonsimple <- caugi(
A %-->% B,
A %<->% B,
class = "UNKNOWN",
simple = FALSE
)
is_simple(cg_nonsimple) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.