README.md
-
Student Information:
- Name: K Keeththigan
- Index No: 23000937
- Registration Number: 2023cs093
- Email: keeththi2003@gmail.com
-
Code Testing:
- The code was tested on Linux.
-
How to Execute the Program:
- Make sure the file
graph.txtis available in the same directory as the program. - The
graph.txtfile should contain the graph's data, including vertices, edges, and weights. - Compile the program using the following command:
make build - Run the program using the following command:
make run - Clean object files after excution using this following command:
make clean
- Make sure the file
-
Special Notes:
- This program implements a graph and performs a BFS traversal, calculates the total weight of the graph, and identifies unreachable nodes.
- The graph is represented using an adjacency list, and the graph type (directed or undirected) is specified in the
graph.txtfile. - The program supports both directed and undirected graphs, as indicated by the input data in the file.
- Ensure that the
graph.txtfile is correctly formatted as expected.