sub1" class="code">function e = spring_energy(xy,g)</a></li><li><a href="#_sub2" class="code">function evec = spring_energy_vec(xy)</a></li></ul>
<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function e=springxy(g)</a>
0002 <span class="comment">% springxy(g) --- find a spring embedding of g</span>
0003 <span class="comment">%</span>
0004 <span class="comment">% Thi