Show the order in which vertices are visited in the depth-firstsearch starting at the vertex 1. Draw DFS forest.
classify all edges: tree edges, back edges, forward edges, crossedges
Is it possible to find topological ordering in the graph?. Ifyes, draw it
3 2 7 4 6 5 Show transcribed image text 3 2 7 4 6 5
Answer
Depth
OR
OR