code">function yn = has_path(g,u,v)</a>
0002 <span class="comment">% has_path(g,u,v) --- determine if there is a path from u to v in g</span>
0003 <span class="comment">% this is implemented a bit differently from find_path</span>
0004 
0005 <span class="keyword">global</span> GRAPH_MAGIC
0006 
0007 n = <a href="nv.html" class="code" title="function n = nv(g)">nv</a>(g);
0008 
0009 <span class="keyword">if</span> (u&lt;1) || (u&gt;n) || (v&lt;1) || (v&gt;n)
0010     yn = 0;
0011     <span class="keyword">re