is_DAG {BNDataGenerator} | R Documentation |
This function tests whether the given graph is a DAG, a directed acyclic graph.
is_DAG(arcs_mat)
arcs_mat |
A matrix that determines the arcs. |
is_dag checks whether there is a directed cycle in the graph. If not, the graph is a DAG.
A logical vector of length one.
Jae-seong Yoo <praster1@gmail.com>