From 346d9d0149facf00a5b7173424b0fc97df38bc4b Mon Sep 17 00:00:00 2001 From: Travis Askham Date: Thu, 28 Mar 2024 22:50:23 -0400 Subject: [PATCH] directly point chunkgraphinit to chunkgraph instructor --- chunkie/chunkgraphinit.m | 99 ++-------------------------------------- 1 file changed, 3 insertions(+), 96 deletions(-) diff --git a/chunkie/chunkgraphinit.m b/chunkie/chunkgraphinit.m index 01ffde6..044b426 100644 --- a/chunkie/chunkgraphinit.m +++ b/chunkie/chunkgraphinit.m @@ -1,100 +1,7 @@ function [cgrph] = chunkgraphinit(verts,edge2verts,fchnks,cparams) warning('This method is deprecated. Use the chunkgraph constructor instead.'); - prefs = []; - cgrph = chunkgraph(prefs); - cgrph.verts = verts; - cgrph.edge2verts = edge2verts; - cgrph.echnks = chunker.empty; - - if (nargin < 4) - cploc = []; - cploc.ta = 0; - cploc.tb = 1; - cploc.ifclosed = 0; - cploc.nover = 1; - cploc.eps = 1.0d-10; - cploc.lvlr = 'a'; - else - cploc = cparams; - %mandatory settings - cploc.ta = 0; - cploc.tb = 1; - cploc.ifclosed = 0; - if (~isfield(cparams,'lvlr')) - cploc.lvlr = 'a'; - end - if (~isfield(cparams,'eps')) - cploc.eps = 1.0d-10; - end - if (~isfield(cparams,'nover')) - cploc.nover = 1; - end - end - - - pref = []; - pref.nchmax = 10000; - pref.k = 16; - - if (size(verts,2) ~= size(edge2verts,2)) - error('Incompatible vertex and edge sizes'); - end - - echnks = chunker.empty(); - for i=1:size(edge2verts,1) - if (numel(fchnks)