free_all --- delete all graphs from the GRAPH_MAGIC system
0001 function free_all 0002 % free_all --- delete all graphs from the GRAPH_MAGIC system 0003 0004 if ~graph_system_exists 0005 error('Graph system has not been intialized') 0006 end 0007 0008 global GRAPH_MAGIC 0009 0010 for i=1:GRAPH_MAGIC.ngraphs 0011 GRAPH_MAGIC.graphs{i} = []; 0012 GRAPH_MAGIC.in_use(i) = 0; 0013 end