title: Parsing through edges in NetworkX graph
body: <p>I'm trying to get edges that have a certain attribute from a graph without using get_edge_attributes() function. I need a more flexible way of doing it. I can get node attributes but since I'm new at python edges seem difficult</p>
  
  <pre><code>G = nx.read_graphml("test.graphml")
  
  for n in G:
    print "%s\t%s" %(n, G.node[n].get(attr))
  
  for (s,d) in G:       # and here is my problem
    print "%s-&gt;%s\t%s" %(s, d, G.edge[s][d].get(attr))
  </code></pre>