Q5
What is the purpose of the adjacency matrix in graph representation?
A.
To store the depth-first search order.
B.
To list the neighbors of each vertex.
C.
To store only the vertices of the graph.
D.
To store the edges and their weights between all pairs of vertices.
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board