You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My branch is at v0.8.0. When building hnsw index in tests/cpp/sift_1b.cpp, I add appr_alg->checkIntegrity(); on line 346 to see if the graph built by the algorithm has in-edge for every node during report_every. However, the assertion fail!
If some node has no in-edge, then it's totally isolated, which means that search on the graph will never visisted it, even it has out-edge.
The text was updated successfully, but these errors were encountered:
lyj-fdu
changed the title
checkIntegrity failed on cpp/tests/sift_1b.cpp
checkIntegrity failed on tests/cpp/sift_1b.cpp
Aug 31, 2024
lyj-fdu
changed the title
checkIntegrity failed on tests/cpp/sift_1b.cpp
hnswlib.v0.8.0: checkIntegrity failed on tests/cpp/sift_1b.cpp
Aug 31, 2024
lyj-fdu
changed the title
hnswlib.v0.8.0: checkIntegrity failed on tests/cpp/sift_1b.cpp
hnswlib.v0.8.0: checkIntegrity fail on tests/cpp/sift_1b.cppAug 31, 2024
Yes, I've encountered the same situation, and it does look as if the hnsw algorithm can't avoid nodes with in-degree 0, even if all points have out-degree.
i think it may be because when the new insertion point creates an edge with its immediate neighbors, the cropping of the neighbor points happens to crop out the new insertion point. Do you know the cause or any other findings?
My branch is at v0.8.0. When building hnsw index in
tests/cpp/sift_1b.cpp
, I addappr_alg->checkIntegrity();
on line 346 to see if the graph built by the algorithm has in-edge for every node duringreport_every
. However, the assertion fail!the code fragment I modified is as follows
the output of command line like this
If some node has no in-edge, then it's totally isolated, which means that search on the graph will never visisted it, even it has out-edge.
The text was updated successfully, but these errors were encountered: