free(g) --- free the graph from the system
0001 function free(g) 0002 % free(g) --- free the graph from the system 0003 0004 if ~graph_system_exists 0005 error('Graph system has not been initialized') 0006 end 0007 0008 global GRAPH_MAGIC 0009 i = g.idx; 0010 0011 GRAPH_MAGIC.in_use(i) = 0; 0012 GRAPH_MAGIC.graphs{i} = [];