| skeleton | R Documentation |
The skeleton of a graph is obtained by replacing all directed edges with undirected edges.
skeleton(cg)
cg |
A |
This changes the graph from any class to an Undirected Graph (UG), also known as a Markov Graph.
A caugi object representing the skeleton of the graph (UG).
Other operations:
condition_marginalize(),
count_dags(),
dag_from_pdag(),
enumerate_dags(),
exogenize(),
latent_project(),
meek_closure(),
moralize(),
mutate_caugi(),
normalize_latent_structure()
cg <- caugi(A %-->% B, class = "DAG")
skeleton(cg) # A --- B
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.