Code covered by the BSD License  

Highlights from
Matgraph

from Matgraph by Ed Scheinerman
Toolbox for working with simple, undirected graphs

Description of size
Home > matgraph > @partition > size.m

size

PURPOSE ^

size(p) --- returns [nv,np]: number of vertices, parts.

SYNOPSIS ^

function s = size(p)

DESCRIPTION ^

 size(p) --- returns [nv,np]: number of vertices, parts.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • size size(p) --- returns [nv,np]: number of vertices, parts.
This function is called by:
  • display display(p) --- used to display paritions to the console
  • eq eq(p,q) --- p==q checks if two partitions are equal
  • np np(p) --- number of parts in the partition p
  • nv nv(p) --- number of vertices (elements) of a partition
  • parts parts(p) --- returns the parts of p in a cell array
  • size size(p) --- returns [nv,np]: number of vertices, parts.
  • subsref subsref --- implements the notation p(v) and p(v,w)

SOURCE CODE ^

0001 function s = size(p)
0002 % size(p) --- returns [nv,np]: number of vertices, parts.
0003 [m,n] = size(p.array);
0004 s = [n,m];

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

Contact us at files@mathworks.com