up:: 041 MOC Graph Theory

Intersection over Union, visually. Source: Wikipedia.
Given a Simple Graph with Adjacency Matrix
One can calculate the Jaccard similarity between
where
Note that this formula could be rewritten as
I.e. it is the fraction of common neighbors (intersection) out of all of both’s neighbors (union). This measure is also used in Computer Vision, under the guise of “Intersection over Union”.

Note that, when compared with Cosine Similarity, it can be proven that Jaccard Similarity is a lower-bound for Cosine Similarity:
References
- NEWMAN, Mark. Networks. Oxford University Press, 2018.
- Jaccard index - Wikipedia
Footnotes
-
Note this makes sense only for undirected networks. ↩