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