alecjacobson / gptoolbox

Matlab toolbox for Geometry Processing.
MIT License
628 stars 165 forks source link

Incorrect number or types of inputs or outputs for function conncomp. #165

Open mmehedin opened 1 month ago

mmehedin commented 1 month ago

Thanks for the building the code.

I encontered this error while trying to replace the graphconncomp function in this code. Error in moseg.MosegAlgAffBase/evalsplit2 (line 413) [S,C] = conncomp(Wceps); I am not sure how to move forward from here. Thanks

mmehedin commented 1 month ago

I finally converted the adjecency matrix to digraph and applied the newer conncomp function (ver > R2015) to the graph. The graphconncomp applies only to the adj. matrix and is available in the older version. [s, t] = find(triu(Wceps)); G = digraph(s, t); [S,C] = conncomp(G,'Type', 'strong');