| is_empty_caugi | R Documentation |
caugi graph empty?Checks if the given caugi graph is empty (has no nodes).
is_empty_caugi(cg)
cg |
A |
A logical value indicating whether the graph is empty.
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_mag(),
is_mpdag(),
is_pdag(),
is_simple(),
is_ug(),
m_separated(),
markov_blanket(),
neighbors(),
nodes(),
parents(),
posteriors(),
same_nodes(),
spouses(),
subgraph(),
topological_sort()
cg_empty <- caugi(class = "DAG")
is_empty_caugi(cg_empty) # TRUE
cg_non_empty <- caugi(
A %-->% B,
class = "DAG"
)
is_empty_caugi(cg_non_empty) # FALSE
cg_no_edges_but_has_nodes <- caugi(
A, B,
class = "DAG"
)
is_empty_caugi(cg_no_edges_but_has_nodes) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.