alecjacobson / gptoolbox

Matlab toolbox for Geometry Processing.
MIT License
629 stars 169 forks source link

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

Closed mmehedin closed 1 month ago

mmehedin commented 4 months 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 4 months 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');