[prev] 47 [next]

Exercise 9: Checking inbound links

Write a function

Vertex *inBound(Graph g, Vertex v, int *nInBound)

that returns a count and array of vertices w s.t. (w,v)

Do this for

  • adjacency matrix representation
  • adjacency list representation