Learn R Programming

catnet (version 1.16.1)

cnMatEdges-method: Network Edge Matrix

Description

Returns a matrix representing the edges of a catNetwork object.

Usage

cnMatEdges(object)

Value

A matrix of characters.

Arguments

object

a catNetwork object

Author

N. Balov, P. Salzman

Details

The resulting matrix has two columns and the number of edges rows. Edges are given as ordered pairs of the elements of the first and second columns.

See Also

cnEdges, cnMatParents

Examples

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

Run the code above in your browser using DataLab