cnParents: Network Parent Structure

cnParents-methodR Documentation

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)

Arguments

object

a catNetwork object

which

a vector of node indices

Value

A list of named nodes.

Author(s)

N. Balov, P. Salzman

See Also

cnMatParents, cnEdges

Examples

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

catnet documentation built on Nov. 10, 2022, 5:08 p.m.