similarities as weights of the edges in graph