q6 BFS without building the graph; no path construction