Code covered by the BSD License  

Highlights from
Matgraph

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

Description of nv

nv

PURPOSE ^

nv(p) --- number of vertices (elements) of a partition

SYNOPSIS ^

function n = nv(p)

DESCRIPTION ^

 nv(p) --- number of vertices (elements) of a partition

CROSS-REFERENCE INFORMATION ^

This function calls:
  • size size(p) --- returns [nv,np]: number of vertices, parts.
This function is called by:
  • array array(p) --- return a single array showing the part numbers of elements.
  • merge merge(p,x,y) --- form a partition from p by combining x and y's parts.
  • mtimes mtimes(p,q) --- p*q is the meet of the partitions p and q
  • plus plus --- p+q is the join of p and q

SOURCE CODE ^

0001 function n = nv(p)
0002 % nv(p) --- number of vertices (elements) of a partition
0003 n = size(p.array,2);

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

Contact us at files@mathworks.com