cnNodes: Netwok Nodes

cnNodes-methodR Documentation

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

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.

Value

a list of characters, the node names

Author(s)

N. Balov, P. Salzman

See Also

cnNumNodes

Examples

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

catnet documentation built on Nov. 10, 2022, 5:08 p.m.