Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


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