mg alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function output = prufer(g, code)</a>
0002 <span class="comment">% prufer --- convert a tree to/from its Prufer code</span>
0003 <span class="comment">% output = prufer(g) returns the Prufer code for g (assuming g is a tree)</span>
0004 <span class="comment">% prufer(g,code) overwrites g with a tree based on the code</span>
0005 <span class="comment">%</span>
0006 <span class