| same_nodes | R Documentation |
Check if two caugi objects have the same nodes.
same_nodes(cg1, cg2, throw_error = FALSE)
cg1 |
A |
cg2 |
A |
throw_error |
Logical; if |
A logical indicating if the two graphs have the same nodes.
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(),
is_ug(),
m_separated(),
markov_blanket(),
neighbors(),
nodes(),
parents(),
posteriors(),
spouses(),
subgraph(),
topological_sort()
cg1 <- caugi(
A %-->% B,
class = "DAG"
)
cg2 <- caugi(
A %-->% B + C,
class = "DAG"
)
same_nodes(cg1, cg2) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.