make_logical(g) --- ensure that the internal storage for g's matrix is a logical matrix (for space efficiency). This function is called by various matgraph routines and it should not be necessary to call this in ordinary use of matgraph.
0001 function make_logical(g) 0002 % make_logical(g) --- ensure that the internal storage for g's matrix is a 0003 % logical matrix (for space efficiency). 0004 % This function is called by various matgraph routines and it should not 0005 % be necessary to call this in ordinary use of matgraph. 0006 0007 global GRAPH_MAGIC 0008 0009 if (~islogical(GRAPH_MAGIC.graphs{g.idx}.array)) 0010 GRAPH_MAGIC.graphs{g.idx}.array = ... 0011 logical(GRAPH_MAGIC.graphs{g.idx}.array); 0012 end