The first 2 pictures are questions(ignore first picture’sproblem) and 3rd pic is answer. If you have a better solutionplease help me and could you explain the answer code line by
<p><img alt="[25 points] Provide a topological sort ordering for the following directed graph. Use both DFS- based and Source Removal algorithm. Redraw the tree at each step to receive credit.