-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value error while reading into csr graph #3
Comments
I'll be available to fix it next week. In the mean time, can you supply the sample edgelist so I can use it when reproducing the bug? Thanks |
That'll be great if this issue can be fixed. sample_edgelist_0712.txt gives out of bounds error and largenumbererror.txt gives the following error -ValueError Traceback (most recent call last) ~/anaconda3/envs/python3/lib/python3.6/site-packages/csrgraph/graph.py in read_edgelist(f, sep, header, **readcsvkwargs) ValueError: |
Hi, I made some changes and fixed some bugs. The two error cases you provided should work and are in the unit tests now. Please pull the current repo (not the pip version, which doesn't have the changes yet) to confirm it fixes the problem on your actual real world usecase. Thanks! |
I can confirm that changes made worked. I was able to read the edgelist in CSR graph object. Thank you so much! |
G = cg.read_edgelist("sample.edgelist", sep='\t')
this leads to the following error -
~/anaconda3/envs/python3/lib/python3.6/site-packages/csrgraph/graph.py in init(self, data, nodenames, copy, threads)
107 raise ValueError(f"""
108 Out of bounds node: {max_idx}, nnodes: {self.nnodes}
--> 109 """)
110 # Manage threading through Numba hack
111 if type(threads) is not int:
ValueError:
Out of bounds node: 170625, nnodes: 146040
The text was updated successfully, but these errors were encountered: