← Back to Examples

Common Neighbors Explained

Like finding mutual friends - predicts who should connect based on shared neighbors!

Common Neighbors is a link prediction algorithm that estimates the likelihood of a future connection between two nodes based on how many neighbors they share. The more mutual connections, the higher the prediction score.

0/2
Nodes Selected
0
Common Neighbors
0
Prediction Score
0
Total Predictions
Click "Start" to see all link predictions, or click two nodes to compare them
Selected Node
Target Node
Common Neighbor
Predicted Link
5
1.5s

Key Concept:

Common Neighbors works on a simple principle:

Score(A, B) = |Neighbors(A) ∩ Neighbors(B)|

This counts the number of nodes that are connected to both A and B. The intuition is that if two people have many mutual friends, they're likely to become friends themselves!

Applications: Friend recommendations on social networks, collaboration predictions in research, and suggesting connections in professional networks.

Code Example

Loading code...