ntf(<span class="string">'Path:\n'</span>);
path =[]; u = rst; <span class="keyword">while</span> (u ~= lax) path=[u path]; u=pred(u); <span class="keyword">end</span>
fprintf(<span class="string">'%s'</span>,labels{lax});
<span class="keyword">for</span> i=path; fprintf(<span class="string">' --&gt; %s'</span>, labels{i}); <span class="keyword">end</span>, fprintf(<span class="string">'\n'</span>);
</pre><pre class="codeoutput">Minimum time: 244
Path:
Los Angeles, CA --&gt; Minneapolis/St Paul, MN --&gt; R