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

Description Usage Arguments Value See Also

View source: R/network.R

Description

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

Usage

1
igraph.to.sparseAdjMat(igraph_network)

Arguments

igraph_network

Network as an igraph object

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).

See Also

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


osofr/simcausal documentation built on Jan. 6, 2019, 3:05 a.m.