MATLAB: Graph function changed

graphmatgraph

I use Matlab for graph theory. Mainly I am using the Matgraph toolbox. To initialize g as a graph. I type g=graph. Usually this would give me in the workspace a g variable graph with a 0x0 and this worked great with Matgraph. Now it is giving me a 1×1 and Matgraph is not accepting it. any idea how to get a 0x0 one back?

Best Answer

I suspect you are getting a MATLAB graph() object. If you
which graph
you will probably see something like
toolbox/matlab/graphfun/@graph/graph.m
You might need to use pathtool to put matgraph earlier on your path.