snap-stanford / snap

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

The output node value error. #125

Closed aijianiula0601 closed 6 years ago

aijianiula0601 commented 6 years ago

I train some edges,which node's value big like 2601296972838024192 . Then the output randomPaths contain some node's value like -1879490816 . why ?

roks commented 6 years ago

Node IDs require more than 32-bits, so you get integer overflow. Use LoadEdgeListStr(), which will treat node IDs as strings and assign them integer IDs.