threeCol2MaxMat {DRaWR} | R Documentation |
threeCol2MaxMat
Description
This function takes a three vectors of equal length (source nodes, target nodes, and edge weights) and return the adjacency matrix as a sparse Matrix.
Usage
threeCol2MaxMat(a = c("a", "b", "c", "c"), b = c("a", "b", "b", "b"),
v = c(1, 2, 3, 4))
Arguments
a |
(vector): vector of source node names. |
b |
(vector): vector of target node names. |
v |
(vector): vector of edge weights names. |
Value
sparce Matrix.
Examples
threeCol2MaxMat(a = c("a","b","c","c"), b = c("a","b","b","b"), v = c(1,2,3,4))
[Package DRaWR version 1.0.3 Index]