163k views
3 votes
Perform depth-first search on each of the following graphs; whenever there's a choice of vertices, pick the one that is alphabetically first. Classify each edge as a tree edge, forward edge, back edge, or cross edge, and give the pre and post number of each vertex.

User Maayan
by
5.0k points

1 Answer

0 votes

Answer:

See the table attached for complete solution to the problem.

Perform depth-first search on each of the following graphs; whenever there's a choice-example-1
User Rob Sawyer
by
5.2k points