;
0044     
0045     data = [i; n,n]; <span class="comment">% note phony last row</span>
0046     m = <a href="size.html" class="code" title="function [sz,tz] = size(g)">size</a>(data,1);
0047     data = [data, ones(m,1)];
0048     A = spconvert(double(data));
0049     <span class="keyword">for</span> k=1:n
0050         A(k,k)=0;
0051     <span class="keyword">end</span>
0052     
0053     A = (A+A')&gt;0;
0054     A = logical(A);
0055     <span class="keyword">if</span> (was_full) 
0056         A = <a href