create_weight_matrix: 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()