Question: 6. (5 marks) Draw two distinct graphs Gi and G2 on 7 vertices fa, b, c, d, e,f.g) such that (a) a depth-first search starting

6. (5 marks) Draw two distinct graphs Gi and G2 on 7 vertices fa, b, c, d, e,f.g) such that (a) a depth-first search starting at a of Gi visits the vertices of G1 in the same order as (b) a depth-first search starting at a of G2 visits the vertices of G2 in the same order as a breadth-first search starting at a of G?, AND a breadth-first search starting at a of G2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
