GraphChi / graphchi-cpp

GraphChi's C++ version. Big Data - small machine.
https://www.usenix.org/system/files/conference/osdi12/osdi12-final-126.pdf
800 stars 311 forks source link

Fix chivectors #48

Open poojanilangekar opened 9 years ago

poojanilangekar commented 9 years ago

The clear() function of the chivector class did not empty the extensions vector. Due to which the chivector contains elements even after the clear function is executed and hence returns invalid values when the get() function is called. To fix this bug, if extensions vector exists, the std::vector::clear function has to be called to clear all the elements in the chivector.