Code covered by the BSD License  

Highlights from
Matgraph

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

graph_destroy
function graph_destroy
% destroy the GRAPH_MAGIC system

disp('WARNING: This will delete all graphs and invalidate all graph handles')
yn = input('Are you sure you want to proceed? 1 = YES, 0 = NO --> ');

if (yn == 1)
    clear global GRAPH_MAGIC
    disp('All graphs destroyed. Start over with graph_init');
else
    disp('Destruction canceled');
end
    

Contact us at files@mathworks.com