Question: Problem 4 . ( 1 4 points ) Perform a depth first search on the graph in Figure 1 . Your answer should show both
Problem points Perform a depth first search on the graph in Figure Your answer should show both the discovery time and finish time for each node. When moving to new nodes in the DFS follow alphabetical order. Write down the forest you get from this DFS that is obtained by including all edges that define a parentchild relationship.
Note that this question can be answered by adding a few extra lines of code in the correct place, without deleting any existing lines. It is okay if your answer does delete or change some lines, but you should attempt to accomplish this task using only a small number of edits.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
