Using the algorithm for breadth first traversal, completeexercises 4 and 6. Instead of implementing the algorithm, write thecode in Java and test the code using the graphs in exercise 1.
will be first labeled with a 1 4 EXERCISES 1. For the following graphs, give the order
OR
OR