Giter Site home page Giter Site logo

Comments (4)

VHRanger avatar VHRanger commented on July 19, 2024

This is because your node IDs should be factored when they get read into the graph.

Eg. the IDs of the nodes should start at 0 and the maximum node ID should be equal to the number of nodes.

CSRGraphs currently only supports up to 4B nodes (uint32_max) -- anyways that's about as much as you can fit on a single machine. Since you're passing in invalid node IDs here it explodes the logic.

I could fix it when I'm back next week, but in the mean time try factoring your node IDs.

from nodevectors.

janvekarnaveed avatar janvekarnaveed commented on July 19, 2024

Thanks for the response. I have factored the ids but get 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: 1897, nnodes: 956

Number of nodes in my edgelist are 1898, I am not sure how nnodes = 956. Attached sample edgelist for debugging.
sample_edgelist_0712.txt

from nodevectors.

janvekarnaveed avatar janvekarnaveed commented on July 19, 2024

@VHRanger any update here?

from nodevectors.

VHRanger avatar VHRanger commented on July 19, 2024

I'm tracking the changes for this in the CSRGraph repo: VHRanger/CSRGraph#3

I made some changes there which should make it work. Please test that it fixes your problem. If it does, I'll push the fix to the pip version of the CSRGraphs package (and update the dependency on nodevectors afterwards).

I'll close the issue here for now since this is a CSRGraphs issue, not really a nodevectors issue.

from nodevectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.