• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE 2017 MOCK II | Question 20

Consider the following statements:
S1 : DFS of a directed graph always produces the same number of edges in the traversal, irrespective of the starting vertex.
S2 : If all of the back edges that are found while DFS traversal on directed graph are removed, the resulting graph is acyclic.

Which of the following statements above are valid ?

(A)

Both S1 and S2 are valid

(B)

Only S1 is valid

(C)

Only S2 is valid

(D)

Neither s1 nor S2 is valid

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments