Learn R Programming

catnet (version 1.16.1)

cnNumNodes-method: Network Size

Description

Returns the number of nodes of a catNetwork object.

Usage

cnNumNodes(object)

Value

an integer

Arguments

object

a catNetwork

Author

N. Balov, P. Salzman

See Also

cnNodes

Examples

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

Run the code above in your browser using DataLab