as_adjacency_matrix function from the igraph package.igraph.to.sparseAdjMat(igraph_network)igraph objectigraph::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).network; sparseAdjMat.to.NetInd; NetInd.to.sparseAdjMat; sparseAdjMat.to.igraph;