Python : updating values in a dictionary
<p>I have the following dictionary -></p>

<pre><code>key : (time,edge_list)
</code></pre>

<p>Now I want to increment all time values by 1. How do I do that?</p>

<pre><code>dict_list = dict(key:(time+1,edge_list) for key:(time,edge_list) in dict_list)
</code></pre>
