num_available --- number of free slots in the graph system
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);