Commit 40afdf7c authored by Lingfan Yu's avatar Lingfan Yu Committed by Minjie Wang
Browse files

[Bugfix] Remove unnecessary assert in from_scipy_sparse_matrix (#391)

parent 91b73823
......@@ -756,8 +756,6 @@ class GraphIndex(object):
----------
adj : scipy sparse matrix
"""
assert isinstance(adj, (scipy.sparse.csr_matrix, scipy.sparse.coo_matrix)), \
"The input matrix has to be a SciPy sparse matrix."
if not self.is_readonly():
self.clear()
num_nodes = max(adj.shape[0], adj.shape[1])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment