powered by
Check if two caugi objects have the same nodes.
caugi
same_nodes(cg1, cg2, throw_error = FALSE)
A logical indicating if the two graphs have the same nodes.
A caugi object.
Logical; if TRUE, throws an error if the graphs do not have the same nodes.
TRUE
Other queries: ancestors(), anteriors(), children(), descendants(), districts(), edge_types(), edges(), exogenous(), is_acyclic(), is_admg(), is_ag(), is_caugi(), is_cpdag(), is_dag(), is_empty_caugi(), is_mag(), is_pdag(), is_ug(), m_separated(), markov_blanket(), neighbors(), nodes(), parents(), spouses(), subgraph(), topological_sort()
ancestors()
anteriors()
children()
descendants()
districts()
edge_types()
edges()
exogenous()
is_acyclic()
is_admg()
is_ag()
is_caugi()
is_cpdag()
is_dag()
is_empty_caugi()
is_mag()
is_pdag()
is_ug()
m_separated()
markov_blanket()
neighbors()
nodes()
parents()
spouses()
subgraph()
topological_sort()
cg1 <- caugi( A %-->% B, class = "DAG" ) cg2 <- caugi( A %-->% B + C, class = "DAG" ) same_nodes(cg1, cg2) # FALSE
Run the code above in your browser using DataLab