csubhasundar / CodingPractice-Hacktoberfest23

Repository totally dedicated to Hacktober Fest 2023, feel free to use it. Topics hacktoberfest hacktoberfest-accepted hacktoberfest2023
32 stars 293 forks source link

Create DFS.java #113

Open Msshoeb opened 1 year ago

Msshoeb commented 1 year ago

When you run this code, it will perform a depth-first search on the sample graph and print the visited vertices in the order they were traversed, starting from the specified starting vertex.