create_weight_matrix: Construct sparse matrix from weighted edgelist

View source: R/matrix_functions.R

create_weight_matrixR 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


Rwclust documentation built on July 25, 2022, 1:05 a.m.