turn</span>
0012 <span class="keyword">end</span>
0013 
0014 <span class="keyword">if</span> u==v
0015     yn = 1;
0016     <span class="keyword">return</span>
0017 <span class="keyword">end</span>
0018 
0019 x = zeros(n,1);
0020 x(u) = 1;
0021 
0022 last_sum = 0;
0023 
0024 <span class="keyword">while</span> last_sum &lt; sum(x)
0025     last_sum = sum(x);
0026     x = GRAPH_MAGIC.graphs{g.idx}.array * x + x;
0027     x = double(x&gt;0);
0028     <span class="keyword">if</span> (x(v))
0029         yn = 1;
