nextNeighbor

open override fun nextNeighbor(): Int

Iterates over the neighbor list. It is illegal to call this method after it returns NO_MORE_DOCS without calling .seek, which resets the iterator.

Return

a node ordinal in the graph, or NO_MORE_DOCS if the iteration is complete.