Learn R Programming

catnet (version 1.16.1)

cnEdges-method: Network Edges

Description

Returns the set of directed edges of a catNetwork object.

Usage

cnEdges(object, which)

Value

A list of nodes' children.

Arguments

object

a catNetwork

which

a vector of node indices or node names

Author

N. Balov, P. Salzman

Details

The edges of a catNetwork are specified as parent-to-child vectors. The function returns a list that for each node with index in the vector which contains its set of children. If which is not specified, the children of all nodes are listed.

See Also

cnParents

Examples

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

Run the code above in your browser using DataLab