Cosine Similarity - Graph Algorithms