create_weight_matrix {Rwclust} | R Documentation |
Construct sparse matrix from weighted edgelist
Description
Takes the weights from compute_kernel and creates weighted adjacency matrix
Usage
create_weight_matrix(edgelist, weights, ...)
Arguments
edgelist |
a dataframe with two columns |
weights |
a vector of weights |
... |
other parameters to be passed to Matrix::sparseMatrix() |
Value
sparseMatrix
[Package Rwclust version 0.1.0 Index]