I have a banded matrix generated from the adjacency matrix of a graph. I would like to create overlapping clusters like shown in the image below
Image source