 vertices with edge</span>
0004 <span class="comment">% probability p.</span>
0005 
0006 <span class="keyword">global</span> GRAPH_MAGIC
0007 
0008 A = triu(sprand(n,n,p));
0009 A = A + A';
0010 <span class="keyword">for</span> k=1:n
0011     A(k,k)=0;
0012 <span class="keyword">end</span>
0013 A = logical(A&gt;0);
0014 GRAPH_MAGIC.graphs{g.idx}.array = A;
0015 <a href="rmxy.html" class="code" title="function rmxy(g)">rmxy</a>(g);</pre></div>
<hr><address>Generated on Fri 30-Apr-2010 07:51:16 by <strong><a 