connectEndPoint gives corresponding end nodes the same y position