cosine similarity graph