Convert igraph network object into its sparse adjacency matrix representation using
as_adjacency_matrix function from the
Network as an
Sparase adjacency matrix returned by
NOTE: for directed graphs the friend IDs pointing into vertex
i are assumed to be listed in the column
which(adjmat[,i]) are friends of
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.