cnEdges: Network Edges

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns the set of directed edges of a catNetwork object.

Usage

1
cnEdges(object, which)

Arguments

object

a catNetwork

which

a vector of node indices or node names

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.

Value

A list of nodes' children.

Author(s)

N. Balov

See Also

cnParents

Examples

1
2
  cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2)
  cnEdges(object=cnet)

sdnet documentation built on May 2, 2019, 12:43 a.m.