fix doctest in neighbors