edgeList {sparsebnUtils}R Documentation

edgeList class

Description

Convenience wrapper class for a (column-major) edge list. Each component of the list corresponds to a node, and each component is an integer vector whose components are the parents of this node in the graph.

Usage

is.edgeList(x)

## S3 method for class 'edgeList'
print(x, maxsize = 20, ...)

## S3 method for class 'edgeList'
summary(object, ...)

edgeList(x)

Arguments

x

A list containing parents for each node in a graph. The length of this list should be the same as the number of nodes in the graph.

maxsize

Maximum number of nodes to print out. If num.nodes(x) > maxsize, then a simple summary will be printed instead.

...

(optional) additional arguments.

object

an object of type edgeList

Details

Also inherits from list.

Methods

get.adjacency.matrix, num.nodes, num.edges


[Package sparsebnUtils version 0.0.8 Index]