nmslib / hnswlib

Header-only C++/python library for fast approximate nearest neighbors
https://github.com/nmslib/hnswlib
Apache License 2.0
4.3k stars 633 forks source link

How to get all the node in a specific layer? #529

Open jybbjybb opened 9 months ago

jybbjybb commented 9 months ago

I would like to modify the HNSW algorithm. During the search, I have the current layer and current object/node. Let's say it is the 5th layer. I would like to list all the nodes in the 5th layer. Is there a way (in "hnswalg.h") to return that? Thanks.