Adjacency Matrix to fastnet
fastnet
Transform an adjacency matrix to an ego-centric list form used in fastnet
.
from.adjacency(adj.mat)
adj.mat
: The input adjacency matrixA list containing the nodes of the network and their respective neighbors.
adj.mat <- matrix(c(0,1,0,0,1,0,0,0,0,0,0,1,0,0,1,0), nrow = 4, ncol = 4) g <- from.adjacency(adj.mat)
Xu Dong, Christian Llano.
Useful links