Routing based on starting time and different weights for time slots

Hey there, I would like to implement something similar to this.
In other words, following what has been proposed here I would like to associate a map ID/List_of_weights to every arc of my graph, so that I could run the routing algorithm by taking into account traffic related information.

Is there a way to achieve this? Where can I start from?

Thank you