Implement a function to check whether two vertices are directly connected by an edge
bool adjacent(Graph g, Vertex x, Vertex y) { … }