gives the cosine similarity between vertices u and v of the graph g.


  • The vertex cosine similarity is also known as Salton similarity.
  • The vertex cosine similarity is the number of common neighbors of u and v divided by the geometric mean of their degrees.
  • VertexCosineSimilarity works with undirected graphs, directed graphs, weighted graphs, multigraphs, and mixed graphs.
Introduced in 2012
| Updated in 2014
Translate this page: