We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nsg/src/index_nsg.cpp
Line 332 in 4da5ee5
根据三角不等式裁边之后, 遗留的边的个数,即result中的元素个数,很可能小于range,此时需要将末尾下一个元素的distance置为-1.
即,需要在 for 循环之后,加上代码: if (result.size() < range) { des_pool[result.size()].distance = -1; }
if (result.size() < range) { des_pool[result.size()].distance = -1; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
nsg/src/index_nsg.cpp
Line 332 in 4da5ee5
根据三角不等式裁边之后, 遗留的边的个数,即result中的元素个数,很可能小于range,此时需要将末尾下一个元素的distance置为-1.
即,需要在 for 循环之后,加上代码:
if (result.size() < range) { des_pool[result.size()].distance = -1; }
The text was updated successfully, but these errors were encountered: