Learn R Programming

spatgraphs (version 2.62)

spatgraphs-adj2sg: Adjacency matrix to edgelist and vice versa

Description

Maps between edgelist and the adjancency matrix representation. Works also with sparse matrices using Matrix-package.

Usage

sg2adj(x)
   adj2sg(x)
   sg2sparse(x)
   sparse2sg(x)

Arguments

x
sg-object, sgadj-object, or sparseMatrix-object.