isDAG: Check Direct Acyclic Graph (DAG) Condition

Description Usage Arguments Details Value Author(s) Examples

Description

For a pair of node and parent lists, the function checks whether the DAG condition holds or not.

Usage

1
isDAG(lnodes, lpars)

Arguments

lnodes

a list of nodes

lpars

a list of node parents

Details

The DAG verification algorithm is based on the topological ordering of the graph nodes. If node ordering is not possible, the graph is not a DAG.

Value

A logical TRUE/FALSE value.

Author(s)

N. Balov

Examples

1
2
  cnet <- cnRandomCatnet(numnodes=20, maxpars=3, numcats=2)
  isDAG(lnodes=cnet@nodes, lpars=cnet@pars)


Search within the sdnet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.