| is_ug | R Documentation |
caugi graph an UG?Checks if the given caugi graph is an undirected graph (UG).
is_ug(cg, force_check = FALSE)
cg |
A |
force_check |
Logical; if |
A logical value indicating whether the graph is an UG.
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_simple(),
m_separated(),
markov_blanket(),
neighbors(),
nodes(),
parents(),
posteriors(),
same_nodes(),
spouses(),
subgraph(),
topological_sort()
cg_ug_class <- caugi(
A %---% B,
class = "UG"
)
is_ug(cg_ug_class) # TRUE
cg_not_ug <- caugi(
A %-->% B,
class = "DAG"
)
is_ug(cg_not_ug) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.