A Java implementation of Dijkstra's shortest path algorithm. Given a list of airports and flights, it calculates the fastest path from a source airport to a destination airport.
- A
Planneris initialized with LinkedLists ofAirports andFlights. - A
Planner'sSchedule(String start, String end, String departure)method returns anItineraryfrom astartairport to anendairport, starting at the timedeparture. - If an itinerary is found, the
Itinerary'sprint()method will print a series of flights in the following format:
[StartAirport->TransitAirport:DepartureTime->ArrivalTime][TransitAirport->DestinationAirport:DepartureTime->ArrivalTime] - If no flight path exists, the
Itinerary'sprint()method will printNo Flight Schedule Found. - Military time is used, and it supports incorrect usage of military time such as
2430(00:30 AM) - This program assumes that the world shares a single time zone, and that no flight takes longer than 24 hours.