title: Algorithm For Flight Schedules
body: <p>I have a list of all direct flights. From this I want to get flights from A to B with connections. What will be a suitable algorithm or data structure for this problem? Thanks.</p>