Given a Graph which has vertices as Cities and Edges as the distance between the cities. Each and every city has certain number of holidays associated with it. Initially you are given the starting point. Now the goal is to find a path in a graph such that we need to collect as many holidays as possible while minimizing the distance.
Eg: Consider a graph:
Vertex Weights:
(City -> Holidays)
A -> 30
B -> 35
C -> 45
Edge Weights
A -> B (Distance is 2)
A -> C (Distance is 8)
If we start from A the maximum holidays we can collect are 65 through the path A -> B with distance "2". We don't choose the path A -> C even though it gives the holidays as 75 since the distance is "8"