snap-stanford / snap

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

running Centrality example with Twitter Dataset #119

Closed AhmadSawalhah closed 6 years ago

AhmadSawalhah commented 6 years ago

I am trying to run Centrality example, using Twitter data set. It gives me error on this line of code (centr.h) TFltV PRankV(MxId+1); the error is : can't allocate memory.

when debugging, I found that the MxId is 9-digit number, because the node id in Twitter data set is large How Can I overcome this problem please? I am using Windows 64, with .Net64 thanks

roks commented 6 years ago

Use LoadEdgeListStr(), which maps string ids to integer ids.