

Reclassify a graph
Source: R/transform.R
Description
Returns a new graph of class class with the same nodes and edges as cg. Errors if the edges violate the structural constraints of class.
Usage
reclass(
cg,
class = c("DAG", "UG", "PDAG", "CPDAG", "MPDAG", "ADMG", "AG", "MAG", "PAG", "UNKNOWN")
)Arguments
cg
|
A graph created with cgraph(), of any class.
|
class
|
Target graph class: "DAG", "UG", "PDAG", "CPDAG", "MPDAG", "ADMG", "AG", "MAG", "PAG", or "UNKNOWN" (no structural constraints; accepts all edge types).
|
Value
A cgraph.