edge joing vertices X and Y