snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.18k stars 799 forks source link

_AddNode(int) requires int instead of any number #153

Open gabefair opened 6 years ago

gabefair commented 6 years ago

I noticed that adding nodes past maxInt is not allowed by the requirement that the parameter to _AddNode be an integer. It should allow for doubles/longs.

In python the error is as follows:

OverflowError: in method 'PNEANet_AddNode', argument 2 of type 'int'

This is important if the user is using the node_id as a unique id.

anchitgupt commented 4 years ago

+1