You are in a city of `n` intersections numbered `0` to `n - 1`, joined by bi-directional roads. The input guarantees every intersection can be reached from any other and there is at most one road between any two intersections. You are given `n` and `roads`, where `roads[i] = [u_i, v_i, time_i]` means a road between `u_i` and `v_i` takes `time_i` minutes to travel. Return the number of ways to travel from intersection `0` to intersection `n - 1` in the shortest amount of time. Since the answer may be large, return it modulo `10^9 + 7`.
You are in a city of n intersections numbered 0 to n - 1, joined by bi-directional roads. The input guarantees every intersection can be reached from any other and there is at most one road between any two intersections. You are given n and roads, where roads[i] = [u_i, v_i, time_i] means a road between u_i and v_i takes time_i minutes to travel. Return the number of ways to travel from intersection 0 to intersection n - 1 in the shortest amount of time. Since the answer may be large, return it modulo 10^9 + 7.