Question: 3. Graph (10 points) 9 (a) (4 points) Give the adjacency matrix representation and the adjacency lists representation for the graph above. Assume that vertices

3. Graph (10 points) 9 (a) (4 points) Give the adjacency matrix representation and the adjacency lists representation for the graph above. Assume that vertices (e.g., in adjacency lists) are ordered alphabetically (b) (6 points) Run depth-first search on the graph above, starting on vertex a Assume that vertices are ordered alphabetically in the adjacency lists. Write the discover and finish times into the vertices. Draw the tree edges into the graphs and show how the tree is stored in the predecessor array. In addition, show the edge classifications of all edges in the graph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
