Add getNeighborId and getNeighborDistance methods.