visitNeighbor implemented