rename affinity matrix to adjacency