Learn R Programming

sdnet (version 2.4.1)

cnMatEdges-method: Network Edge Matrix

Description

Returns a matrix representing the edges of a catNetwork object.

Usage

cnMatEdges(object)

Arguments

object

a catNetwork object

Value

A matrix of characters.

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
# NOT RUN {
  cnet <- cnRandomCatnet(numnodes=10, maxpars=3, numcats=2)
  cnMatEdges(object=cnet)
# }

Run the code above in your browser using DataLab