Code covered by the BSD License  

Highlights from
Matgraph

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

graph_system_exists
function tf = graph_system_exists
% graph_system_exists checks to see if the GRAPH_MAGIC global structure has
% been initialized.
tf = ~isempty(whos('global','GRAPH_MAGIC'));

Contact us at files@mathworks.com