title: Removing links over a specific weight
body: <p>I am working with NetworkX and I have built a weighted graph from an adjacency matrix.</p>
  
  <p>Now I would like to remove all the edges which have a weight lower than a specific threshold. How could I identify those links?</p>
  
  <p>Here is how I construct my graph:</p>
  
  <pre><code>G = nx.from_numpy_matrix(weighted, parallel_edges=False)
  </code></pre>
  
  <p>Now I would like to remove the edges using that condition writing something like the following, but for edges:</p>
  
  <pre><code>[node for node, degree in dict(G.degree()).items() if degree &gt; 2]
  </code></pre>
  
  <p>But I get an error when I write <code>G.edges(i).data()</code> so I am not able to write the condition to evaluate.</p>