Learn R Programming

gasper (version 1.1.3)

download_graph: Download sparse matrix form the SuiteSparse Matrix Collection.

Description

If coordinates are associated with the graphs, they are automatically downloaded and added to the output. See https://sparse.tamu.edu/ for the list of groups and graph names.

Usage

download_graph(matrixname, groupname)

Value

matrixname a list contening the sparse matrix sA, xy coordinates (if any), dim the number of rows, columns and numerically nonzero elements and info, the path to a plain txt file containing information associated with sA (accessible for example via file.show(matrixname$info)).

Arguments

matrixname

Name of the graph to download.

groupname

Name of the group that provides the graph.

References

Davis, T. A., & Hu, Y. (2011). The University of Florida sparse matrix collection. ACM Transactions on Mathematical Software (TOMS), 38(1), 1-25.

Examples

Run this code
matrixname <- "grid1"
groupname <- "AG-Monien"
download_graph(matrixname,groupname)
file.show(grid1$info)

Run the code above in your browser using DataLab