Robuta

https://www.mathworks.com/matlabcentral/fileexchange/35442-connected-component-analysis-on-an-undirected-graph Connected Component Analysis on an Undirected Graph - File Exchange - MATLAB Central Download and share free MATLAB code, including functions, models, apps, support packages and toolboxes connected component analysisundirected graphfile exchange