Multi-source BFS
Find how many roads separate each house from its nearest fire station. If each road takes the same time to travel, this tells you how soon help can arrive.
Start every source at distance zero in the same queue. Each new neighbor takes one more step. Unreachable vertices keep −1.
With adjacency lists, traversal takes O(V + E) time for V vertices and E edges.