getSparseMat: Extract the Adjancency Sparse Matrix

Description Usage Arguments Value Examples

Description

This function allows you to get the adjacency matrix from a graph object.

Usage

1
getSparseMat(graph)

Arguments

graph

The graph from which to obtain the matrix

Value

A matrix of sparse format from package Matrix with entries corresponding to the edge list of the given graph

Examples

1
M = getSparseMat(g)

DavidGilgien/ML.RMCL documentation built on May 6, 2019, 1:54 p.m.