[prev] 55 [next]

Exercise #8: Checking Neighbours (i)

Assuming an adjacency-matrix representation …

Implement a function to check whether two vertices are directly connected by an edge

bool adjacent(Graph g, Vertex x, Vertex y) { … }