Learn R Programming

teal.data (version 0.5.0)

is_dag: Checks whether a graph is a Directed Acyclic Graph (DAG)

Description

Checks whether a graph is a Directed Acyclic Graph (DAG)

Usage

is_dag(graph)

Value

logical(1)

TRUE if the graph is a DAG; FALSE otherwise

Arguments

graph

(named list) with node vector elements