lass="comment">% Find the minimum travel time between Los Angeles (LAX) and</span>
<span class="comment">% Rochester Minnesota (RST).</span>
load_gaimc_graph(<span class="string">'airports'</span>)
A = -A; <span class="comment">% fix funny encoding of airport data</span>
lax=247; rst=355;

[d pred] = dijkstra(A,lax); <span class="comment">% find all the shorest paths from Los Angeles.</span>

fprintf(<span class="string">'Minimum time: %g\n'</span>,d(rst));
<span class="comment">% Print the path</span>
fpri