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
I'd like to know if there are algorithms or libraries available in Python to generate such overlapping clusters from banded matrices created with adjacency matrix of a graph.