is_DAG {BNDataGenerator}R Documentation

Directed acyclic graphs

Description

This function tests whether the given graph is a DAG, a directed acyclic graph.

Usage

	is_DAG(arcs_mat)

Arguments

arcs_mat

A matrix that determines the arcs.

Details

is_dag checks whether there is a directed cycle in the graph. If not, the graph is a DAG.

Value

A logical vector of length one.

Author(s)

Jae-seong Yoo <praster1@gmail.com>

See Also

is_acyclic


[Package BNDataGenerator version 1.0 Index]