Learn R Programming

catnet (version 1.09.4)

cnNumNodes-method: Network Size

Description

Returns the number of nodes of a catNetwork object.

Usage

cnNumNodes(object)

Arguments

object
a catNetwork

Value

  • an integer

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