Coerce between undirected and directed graphs when possible
An undirected graph G can be converted to a dag if G is chordal.
ug2dag(object)
object