I'm working with correlation matrices and I'd like to find such permutation of variables that the correlation matrix is 'most block diagonal' (cf. picture below). How does one go about doing this? Is there some well known metric that measures 'block-diagonalness'?
I'm happy with any result that groups variables in a sensible way for clear-cut cases and doesn't do terrible job in vague ones.