Route function finds every unique and acyclic connection of flights.
- Param1: departure
- Param2: destination
- Param3: day
- Param4: Route (variable in which the answers are saved)
- Param5: DeptTime (returned variable that specifies the time of departure)
- Param6: ArrTime (returned variable that specifies the time of arrival)
- Param7: TotalLength (total length of the trip)
best_route returns the trip that takes the least amount of time to complete. The parameters remain unchanged except the 4th one which now returns the best route(s).