Data Structure and Algorithm Task
Data Structure and Algorithm Task
Assignment # 4
Create a class graph that represents an undirected graph using an adjacency list.
For both BFS and DFS operations, measure the time it takes to execute the operation on
graphs of different sizes (e.g., 100, 500, 1000 vertices):