cnOrder: Network Node Order

Description Usage Arguments Details Value Author(s) Examples

Description

The function returns an order of the nodes of a network that is compatible with its parent structure.

Usage

1
cnOrder(object)

Arguments

object

a catNetwork or a list of node parents.

Details

An order is compatible with the parent structure of a network if each node has as parents only nodes appearing earlier in that order. That such an order exists is guaranteed by the fact that every catNetwork is a DAG (Directed Acyclic Graph). The result is one order out of, eventually, many possible.

Value

a list of node indices.

Author(s)

N. Balov, P. Salzman

Examples

1
2
  cnet <- cnRandomCatnet(numnodes=20, maxParents=3, numCategories=2)
  cnOrder(object=cnet)


Search within the catnet 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.