Data structures · Graphs
Fewest flight changes, fewest clicks between two web pages: the order BFS visits in already measures them.