adjacency function

Dissimilarity matrix based on connectivity information.