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
See this code snippet,
/* * Load neighbors from page */ static void LoadNeighborsFromPage(HnswElement element, Relation index, Page page, int m) { char *base = NULL; HnswNeighborTuple ntup = (HnswNeighborTuple) PageGetItem(page, PageGetItemId(page, element->neighborOffno)); int neighborCount = (element->level + 2) * m; Assert(HnswIsNeighborTuple(ntup)); HnswInitNeighbors(base, element, m, NULL);
Why is the neighborCount is (level + 2) * m rather than (level + 1) * m?
(level + 2) * m
(level + 1) * m
The text was updated successfully, but these errors were encountered:
Layer 0 can have up to 2 * m connections, as recommended in the HNSW paper.
2 * m
Sorry, something went wrong.
No branches or pull requests
See this code snippet,
Why is the neighborCount is
(level + 2) * m
rather than(level + 1) * m
?The text was updated successfully, but these errors were encountered: