Code covered by the BSD License
size(g) --- returns [nv,ne] for the graph
0001 function [sz,tz] = size(g) 0002 % size(g) --- returns [nv,ne] for the graph 0003 0004 if nargout >= 2 0005 sz = nv(g); 0006 tz = ne(g); 0007 else 0008 sz = [nv(g),ne(g)]; 0009 end
Contact us at files@mathworks.com