Where the first 3 letters are source airports, the second 3 letters are destination airports, the first number is the mileage for the trip, and the second number is the price of the flight.
I'm then supposed to store this in a graph and use the shortest path algorithm (I guess) to post the cheapest flights for all possible destinations from a source airport that the user enters.
This is the last assignment of the semester and for some reason it just isn't clicking with me at all. I've looked up a whole bunch of ways to make weighted, directed graphs and they seem to make sense but I guess what's tripping me up is that there's more info that needs to be stored in this graph than just the integers that I've seen put into other peoples' graphs.
What is the best way to go about this? What kind of graph should I use? I'm definitely not understanding the shortest path algorithm, either. Maybe that would become easier to get once I have a working graph but I don't get how I'm supposed to be using it. I know it's a lot of questions but any help would be greatly appreciated. I've been able to do all the other assignments for this class pretty easily but I've worked on this one for 2 days and I feel like I'm not getting anywhere.