Learn R Programming

catnet (version 1.16.1)

cnNodes-method: Netwok Nodes

Description

Returns the list of nodes of a catNetwork object.

Usage

cnNodes(object, which)

Value

a list of characters, the node names

Arguments

object

a catNetwork object

which

a vector of node indices

Author

N. Balov, P. Salzman

Details

Nodes are represented by characters. When a random catNetwork object is constructed, it takes the default node names N#, where # are node indices. The function returns the node names with indices given by parameter which, and all node names if which is not specified.

See Also

cnNumNodes

Examples

Run this code
  library(catnet)
  cnet <- cnRandomCatnet(numnodes=10, maxParents=3, numCategories=2)
  cnNodes(object=cnet)

Run the code above in your browser using DataLab