Learn R Programming

sdnet (version 2.4.1)

cnNodes-method: Netwok Nodes

Description

Returns the list of nodes of a catNetwork object.

Usage

cnNodes(object, which)

Arguments

object

a catNetwork object

which

a vector of node indices

Value

a list of characters, the node names

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
# NOT RUN {
  cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2)
  cnNodes(object=cnet)
# }

Run the code above in your browser using DataLab