Added function computing adjacency and overlapping of clusters