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

Incorrect value lookup in NIdDistH #127

Closed aaronaquino closed 6 years ago

aaronaquino commented 6 years ago

In these lines, we should be looking up values in NIdDistH using the GetDat() function, which accepts a key. Currently the function uses [] notation, which incorrectly assumes we are looking up by key ID.

https://github.com/snap-stanford/snap/blob/b9e50cb55218d1007c64bece3f56d4c3941dc8c9/snap-core/centr.cpp#L690-L691

roks commented 6 years ago

Thank you for the report! This has been fixed.