Python: Obtain edge end points of the graph
<p>I need the edge end points from a graph. I have installed networkx. I have some idea how to proceed.</p>

<p>networkx.Graph.edges_iter() returns all the edges in the graph</p>

<pre><code>[e for e in G.edges_iter()]
[(0, 1), (1, 2), (2, 3)]
</code></pre>

<p>What I want is a list [0,1,1,2,2,3]</p>

<p>How do I get this from the above data?</p>
