now able to generate the proximity matrix and the adjacency matrix