mmented
            out.
         </p>
         <p>Oops, travel time isn't symmetric!  Let's just pick the longest possible time.</p><pre class="codeinput">A = max(A,A');
T = mst_prim(A);
sum(sum(T))/2 <span class="comment">% total travel time in tree</span>
</pre><pre class="codeoutput">
ans =

   (1,1)          24550

</pre><p>Well, the total weight isn't that helpful, let's <i>look</i> at the data instead.
         </p><pre class="codeinput">clf;
gplot(T,xy);
</pre><img vspace="5" hspace="5" src="demo_05