random_sparse_matrix: Build a random sparse matrix
Description
Build a sparse matrix of size m * n with
non-zero probability p.
Edge weights can be unweighted, constant-weighted or
Poisson-weighted.
Usage
random_sparse_matrix(m, n, p, sample_weight_type = "constant", w = 1)
Value
A random sparse matrix.
Arguments
- m, n
Dimension of matrix to build is (m, n).
- p
Probability that each entry is non-zero (before weighting).
- sample_weight_type
Type of weighting scheme.
- w
Weight parameter.