Code covered by the BSD License  

Highlights from
Matgraph

from Matgraph by Ed Scheinerman
Toolbox for working with simple, undirected graphs

free_all
function free_all
% free_all --- delete all graphs from the GRAPH_MAGIC system

if ~graph_system_exists
    error('Graph system has not been intialized')
end

global GRAPH_MAGIC

for i=1:GRAPH_MAGIC.ngraphs
    GRAPH_MAGIC.graphs{i} = [];
    GRAPH_MAGIC.in_use(i) = 0;
end

Contact us at files@mathworks.com