Your friends want to use the Web site to determine the fastest way
to travel through the directed graph from their starting point to their
intended destination. (You should assume that they start at time 0, and
that all predictions made by the Web site are completely correct.) Give a
polynomial-time algorithm to do this, where we treat a single query to
the Web site (based on a specific edge e and a time t) as taking a single
computational step.