Home > matgraph > free_all.m

free_all

PURPOSE ^

free_all --- delete all graphs from the GRAPH_MAGIC system

SYNOPSIS ^

function free_all

DESCRIPTION ^

 free_all --- delete all graphs from the GRAPH_MAGIC system

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

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