Breadth First Search using adjacency list implementation of a graph