Description Usage Arguments Value Author(s) Examples
Creates a sparse adjacency matrix from list of vertex neighbours.
1 | adj_matrix_from_nei_list(nei_list)
|
nei_list |
a list of vectors, where each vector contains the indices of the adjacent neighbours. |
a sparse adjacency matrix (with zero on the diagonal)
Andrew Zammit Mangion
1 2 | nei_list <- list(c(2,3),1,1)
adj.matrix <- adj_matrix_from_nei_list(nei_list)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.