changed testBreadthFirstSearch to accept filenames for easier testing for O(V+E)