Learn R Programming

simcausal (version 0.5.7)

igraph.to.sparseAdjMat: Convert igraph Network Object into Sparse Adjacency Matrix

Description

Convert igraph network object into its sparse adjacency matrix representation using as_adjacency_matrix function from the igraph package.

Usage

igraph.to.sparseAdjMat(igraph_network)

Value

Sparase adjacency matrix returned by igraph::as_adjacency_matrix function. NOTE: for directed graphs the friend IDs pointing into vertex i are assumed to be listed in the column i

(i.e, which(adjmat[,i]) are friends of i).

Arguments

igraph_network

Network as an igraph object

See Also

network; sparseAdjMat.to.NetInd; NetInd.to.sparseAdjMat; sparseAdjMat.to.igraph;