title: 'Graph' object has no attribute 'nodes_iter' in networkx module python
body: <p>I have the below function in python2.7 using networkx module which produces the error. </p>
  
  <pre><code>for H in networkx.connected_component_subgraphs(G):
      bestScore = -1.0
      for n, d in H.nodes_iter(data=True):
          if d['Score'] &gt; bestScore:
              bestScore = d['Score']
              bestSV = n
      if bestSV is not None:
          selectedSVs.add(bestSV)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "cnvClassifier.py", line 128, in &lt;module&gt;
  for n, d in H.nodes_iter(data=True):
  AttributeError: 'Graph' object has no attribute 'nodes_iter'
  </code></pre>
  
  <p>Does anybody have any idea what has been wrong?</p>