Home > matgraph > @graph > free.m

free

PURPOSE ^

free(g) --- free the graph from the system

SYNOPSIS ^

function free(g)

DESCRIPTION ^

 free(g) --- free the graph from the system

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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} = [];

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