adjacency matrix generation for increasing number of clusters