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

Nid should be long instead of int #111

Closed jnguyennova closed 7 years ago

jnguyennova commented 7 years ago

In Infomap, for example, the Nid is an integer value, making it unsuitable to run analysis on very large number, such as Twitter ids, etc. Nid should be long or string.

roks commented 7 years ago

Use LoadEdgeListStr() to load graphs that have long ids and require strings: http://snap.stanford.edu/snap/doc/snapuser-ref/d3/d73/namespaceTSnap.html#a1e0d886b4ba411b8e3bc4a31a6a06af4

If your graph has more than 1.5 billion nodes, use a 64-bit version of SNAP in repository: https://github.com/snap-stanford/snap-dev-64