3.Given an adjacency matrix representation of a directed graph, and aspecified vertex v, how would you best compute the in-degree of v?Analyze the time complexity of your algorithm.
Answer
Dear Learner,
The answer to your question is O(V) where V isthe total number of vertices.
I have attached the images for the explanation
And the algorithm
Hope
OR
OR