

Moralize a graph
Source: R/transform.R, R/jlbind-wrappers.R
Description
Returns the moral graph of cg: an undirected graph with a "marriage" edge added between every pair of directed parents that share a common child, then every edge replaced with an undirected edge. For a PDAG-family graph, only directed parents participate in marriage edges; undirected neighbors are carried over but don’t form a clique.
Usage
moralize(cg)Arguments
cg
|
A DAG or PDAG-family (PDAG, CPDAG, MPDAG) graph created with cgraph().
|
Value
A cgraph of class UG.