pygmtools.numpy_backend.dense_to_sparse

pygmtools.numpy_backend.dense_to_sparse(dense_adj)[source]

numpy implementation of converting a dense adjacency matrix to a sparse matrix