VertexCosineSimilarity

VertexCosineSimilarity[g,u,v]
gives the cosine similarity between vertices u and v of the graph g.

DetailsDetails

  • 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
(9.0)
| Updated in 2014
(10.0)