implemented wq1 challenge 3 - randomly generate a graph and perform BFS on it