igraph.to.sparseAdjMat {simcausal} | R Documentation |
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)
Arguments
igraph_network |
Network as an |
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
;
[Package simcausal version 0.5.6 Index]