threeCol2listMat | R Documentation |
This function takes a three vectors of equal length (source nodes, target nodes, and edge weights) and return the adjacency matrix as a list of vectors.
threeCol2listMat(a = c("a", "b", "c", "c"), b = c("a", "b", "b", "b"), v = c(1, 2, 3, 4))
a |
(vector): vector of source node names. |
b |
(vector): vector of target node names. |
v |
(vector): vector of edge weights names. |
list of vectors matrix representation.
threeCol2listMat(a = c("a","b","c","c"), b = c("a","b","b","b"), v = c(1,2,3,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.