Learn R Programming

catnet (version 1.16.1)

cnParents-method: Network Parent Structure

Description

Returns the list of parents of selected nodes of a catNetwork object. If which is not specified, the parents of all nodes are listed.

Usage

cnParents(object, which)

Value

A list of named nodes.

Arguments

object

a catNetwork object

which

a vector of node indices

Author

N. Balov, P. Salzman

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