There are several techniques used to quantify the similarity between nodes. They can be divided into two categories:
- Set-based measures: Compare the content of two sets globally. For instance, sets (A, B, C) and (C, D, B) have two common elements.
- Vector-based measures: Compare vectors element-wise, meaning that the position of each element is important. Euclidean distance is an example of such measures.
Let's go into more detail about these metrics, starting from the set-based similarities.