Implemented BFS traversal of graph represented as adjacency matrix