skeleton: Get the skeleton of a graph

View source: R/operations.R

skeletonR Documentation

Get the skeleton of a graph

Description

The skeleton of a graph is obtained by replacing all directed edges with undirected edges.

Usage

skeleton(cg)

Arguments

cg

A caugi object. Either a DAG or PDAG.

Details

This changes the graph from any class to an Undirected Graph (UG), also known as a Markov Graph.

Value

A caugi object representing the skeleton of the graph (UG).

See Also

Other operations: condition_marginalize(), count_dags(), dag_from_pdag(), enumerate_dags(), exogenize(), latent_project(), meek_closure(), moralize(), mutate_caugi(), normalize_latent_structure()

Examples

cg <- caugi(A %-->% B, class = "DAG")
skeleton(cg) # A --- B


caugi documentation built on Oct. 28, 2026, 1:07 a.m.