adjacent function

Adjacent vertices.