We need to render Bayesian network graph which is a directed acyclic graph. We cannot use tree because a node can have multiple parents.