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:
graph_system_exists graph_system_exists checks to see if the GRAPH_MAGIC global structure has
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);