Learn R Programming

catnet (version 1.00.0)

cnParents-method: Network Parents

Description

Returns the list of parents of a catNetwork object.

Usage

cnParents(object, which)

Arguments

object
a catNetwork object
which
a vector of node indices

Value

  • A list of parents for nodes with indices which, or all node parents if which is not specified.

See Also

cnMatParents, cnEdges

Examples

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

Run the code above in your browser using DataLab