Learn R Programming

gRbase (version 1.9.0)

ug2dag: Coerce between undirected and directed graphs when possible

Description

An undirected graph G can be converted to a dag if G is chordal. A dag D can be converted to an undirected graph if D can be moralized without adding edges.

Usage

ug2dag(gn)

Arguments

gn

A graphNEL object or an object that can be converted to a graphNEL object.