representing a graph
BFS traversal from a given source