Graph reading from file & bfs