Skip to content

Conversation

sangampaudel530
Copy link

This pull request adds two C++ programs demonstrating graph traversal algorithms:

  1. DFS.cpp - Implements Depth-First Search (DFS) on a pre-defined graph with 5 nodes.
  2. BFS.cpp - Implements Breadth-First Search (BFS) on a pre-defined graph with 5 nodes.

Features:

  • Example adjacency list graph provided in the code.
  • Demonstrates traversal order for DFS and BFS.
  • Useful for learning and understanding basic graph traversal algorithms in C++.

Closes #115

@sangampaudel530
Copy link
Author

@Nikhil-2002 could you merge this pull request ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graph Traversals

2 participants