Check if the edge between the two vertex passed is contained in the graph or not.
An edge between V1 and V2 is contained in the graph if and only if i can travel from V1 to V2.
If one of the two vertices is not contained in the graph, then even the edge isn't