Fixed name of weight_matrix_sparse.
Export sparse functions.
Added tests for adj_matrix_*_sparse.
Fixed some bugs in adj_matrix_*_sparse based on tests.