n>
0027 
0028 <span class="keyword">if</span> nargin == 2
0029     [nr,nc] = <a href="size.html" class="code" title="function [sz,tz] = size(g)">size</a>(i);
0030     <span class="comment">% check shape</span>
0031     <span class="keyword">if</span> (nc ~= 2)
0032         error(<span class="string">'in add(elist), elist should have exactly two columns'</span>);
0033     <span class="keyword">end</span>
0034     
0035     maxv = max(max(i));
0036     <span class="keyword">if</span> maxv &gt; n
0037         