I constructed a graph based on similarity of adjacent superpixels on an image and consequently I computed its corresponding adjacency (affinity) matrix. I saw several instances of visualization of such matrices as in the following figure.
Is this some type of clustering and how producing such a representation is possible in MATLAB? Is there any specific function or method for that?
Update (Finding): As @Yuval Harpaz suggested, I found that it is some type of Spectral clustering and there is a specific Matlab function for that. Now, the question is how to represent spectral clustering results similar to the OP.

image,imagescandpcolor. - beakerimagesc(matrix); axis off. Is that what you want? - Ander Biguricolormap. - beaker