Skip to content

Added BFS code in c#3542

Merged
fineanmol merged 1 commit intofineanmol:masterfrom
kl2400030727:patch-2
Oct 31, 2025
Merged

Added BFS code in c#3542
fineanmol merged 1 commit intofineanmol:masterfrom
kl2400030727:patch-2

Conversation

@kl2400030727
Copy link
Contributor

Problem

-There was no existing implementation of the Breadth First Search (BFS) algorithm in the repository.

Solution

-Added a C program that implements the BFS algorithm using an adjacency matrix and queue.

The program allows users to input vertices, edges, and a starting node to perform traversal.

This implementation helps contributors understand graph traversal, queue operations, and adjacency matrix representation.

Addresses #<issue number #324>

Changes proposed in this Pull Request :

  • 1.
  • ..
    1. Added Breadth First Search (BFS) algorithm implementation in C language.
  1. Implemented queue-based logic for level order traversal of graphs.

  2. Ensured clean input/output handling for easier execution and understanding.

Fixes #324

@fineanmol fineanmol merged commit 7abfabd into fineanmol:master Oct 31, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Code for BFS

2 participants