title: Getting top n edges in a graph networkx
body: <p>I have a directed multi-graph which with weights. The edge addition looks like</p>
  
  <pre><code> g.add_edge(source_a,source_b, weight= some_Weight)
  </code></pre>
  
  <p>When the graph is built, I want to have edges only between top nodes between a node based on a weights. So if my graph is like</p>
  
  <pre><code> 1,2,0.5
   1,2,0.6
   1,2,0.4
   1,3,0.5
   ...
  </code></pre>
  
  <p>I want to only see top 2 edges between for each node. By top I mean, edges with top weights.
  So the output will be something like</p>
  
  <pre><code>1,2,0.6
  1,2,0.5
  1,3,0.5
  </code></pre>
  
  <p>I am deleting rest of the edges. How do I do this using python/networkx?</p>