bug fix: when visiting a point, its neighbors' distances are now set to min+1 of its neighbors