cnNodes: Netwok Nodes

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

Description

Returns the list of nodes of a catNetwork object.

Usage

1
cnNodes(object, which)

Arguments

object

a catNetwork object

which

a vector of node indices

Details

Nodes are represented by characters. When a random catNetwork object is constructed, it takes the default node names N#, where # are node indices. The function returns the node names with indices given by parameter which, and all node names if which is not specified.

Value

a list of characters, the node names

Author(s)

N. Balov

See Also

cnNumNodes

Examples

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

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