Hello, I noticed the nb_neighbor function is not bound checked, and this function is directly accessible in the Python API where out-of-bound access will return raw memory contents without any warning or error message.
I think this is quite dangerous especially in APIs for memory managed languages where people usually assume bound checks.

Hello, I noticed the nb_neighbor function is not bound checked, and this function is directly accessible in the Python API where out-of-bound access will return raw memory contents without any warning or error message.
I think this is quite dangerous especially in APIs for memory managed languages where people usually assume bound checks.