Description Usage Arguments Value Examples
Get list containing adjacent, i.e., neighboring, nodes for each node in the graph. Nodes are returned as their row indices of the adjacency matrix.
1 | get_adjlist(adj)
|
adj |
numeric matrix specifying the adjacency matrix. |
A list of vectors containing the indices of adjacent nodes.
1 2 3 4 5 | # generate watts strogatz graph
network = grow_ws(n = 6, k = 2, p = .5)
# transform to adjlist
get_adjlist(network)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.