itle="function elist = edges(g)">edges</a>(n-1,:) = verts;
0077 <a href="add.html" class="code" title="function add(g,i,j)">add</a>(g,<a href="edges.html" class="code" title="function elist = edges(g)">edges</a>);
0078     
0079 
0080 
0081 
0082 <a name="_sub1" href="#_subfunctions" class="code">function ok = prufer_check(list)  </a><span class="comment">% check if list is a valid Prufer code</span>
0083 ok = false;
0084 n = length(list)+2;
0085 
0086 <span class="keyword">if</span> (any(list &gt; n)) || (