Home > matgraph > @graph > size.m

size

PURPOSE ^

size(g) --- returns [nv,ne] for the graph

SYNOPSIS ^

function [sz,tz] = size(g)

DESCRIPTION ^

 size(g) --- returns [nv,ne] for the graph

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Thu 13-Mar-2008 14:23:52 by m2html © 2003