Learn R Programming

sparsebnUtils (version 0.0.8)

get.adjacency.matrix.edgeList: get.adjacency.matrix

Description

Extracts the adjacency matrix of the associated graph object.

Usage

# S3 method for edgeList
get.adjacency.matrix(x)

get.adjacency.matrix(x)

# S3 method for sparsebnFit get.adjacency.matrix(x)

# S3 method for sparsebnPath get.adjacency.matrix(x)

Arguments

x

any R object.

Value

matrix

Methods (by class)

  • edgeList: Convert internal edgeList representation to an adjacency matrix

  • sparsebnFit: Retrieves edges slot and converts to an adjacency matrix

  • sparsebnPath: Retrieves all edges slots in the solution path, converts to an adjacency matrix, and returns as a list