Home > matgraph > num_available.m

num_available

PURPOSE ^

num_available --- number of free slots in the graph system

SYNOPSIS ^

function nfree = num_available

DESCRIPTION ^

 num_available --- number of free slots in the graph system

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function nfree = num_available
0002 % num_available --- number of free slots in the graph system
0003 
0004 if ~graph_system_exists
0005     error('Graph system has not been initialized.')
0006 end
0007 
0008 global GRAPH_MAGIC;
0009 nfree = GRAPH_MAGIC.ngraphs - sum(GRAPH_MAGIC.in_use);

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