Learn R Programming

catnet (version 1.09.4)

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

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 \code{which}, and all node names if which is not specified.

a list of characters, the node names

[object Object],[object Object]

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

cnNumNodes

methods graphs