bool adjacent(Graph g, Vertex x, Vertex y) { assert(g != NULL && validV(g,x) && validV(g,y)); return (g->edges[x][y] != 0); }