This function identifies equivalence classes within the graph defined by the (sparse) matrix A. Off diagonal matrix elements, Aij, which exceed the value of 'lim' are taken to establish an equivalence relation between the components i and j.
Marcin Konowalczyk (2020). mat2blk (https://www.mathworks.com/matlabcentral/fileexchange/60786-mat2blk), MATLAB Central File Exchange. Retrieved .
Changed the title so that it does not include the arguments
Updated docstring - now gives more information about about how to invert the permutation of A
Corrected documentation typo
Now stores blocks as full matrices
Inspired by: block diagonal representation