title: Python get degrees within nodes
body: <p>How can I get the degrees from a network graph.</p>
  
  <pre><code>list(graph.degree().values())
  </code></pre>
  
  <p>example [0,2,4,1,0,3,2,1,4,0,2,0] and I want just the degrees like.</p>
  
  <pre><code>[0,1,2,3,4]
  </code></pre>
  
  <p>is there some kind of function within python or networkx</p>