The document contains a C++ program that implements graph traversal using the Breadth First Search (BFS) algorithm. It defines a graph class with methods to prepare an adjacency list and perform BFS on the graph. The main function allows user input for vertices and edges, and outputs the BFS traversal result.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
0 views4 pages
DAA Program-1
The document contains a C++ program that implements graph traversal using the Breadth First Search (BFS) algorithm. It defines a graph class with methods to prepare an adjacency list and perform BFS on the graph. The main function allows user input for vertices and edges, and outputs the BFS traversal result.
UNIVERSITY INSTITUTE OF ENGINEERING AND TECHNOLOGY (A CONSTITUENT AUTONOMOUS INSTITUTE AND RECOGNIZED BY UGC UNDER SECTION 12(B) AND 2(F)) KURUKSHETRA UNIVERSITY, KURUKSHETRA (ESTABLISHED BY THE S