';
    <span class="keyword">end</span>
<span class="keyword">end</span>

<span class="keyword">if</span> nargin == 5
    <span class="keyword">if</span> min(size(1)) ~= 1
        error(<span class="string">'l must be a vector'</span>);
    <span class="keyword">end</span>
    <span class="keyword">if</span> max(size(l)) ~= n
        error(<span class="string">'the vector l must have same length as the input graphs'</span>);
    <span class="keyword">end</span>
    <span class="keyword">if</span> size(l,1) 