edgeList: edgeList class

Description Usage Arguments Details Methods

View source: R/s3-generics.R

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

1
2
3
4
5
6
7
8
9
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


sparsebnUtils documentation built on Jan. 27, 2021, 9:05 a.m.