From the graph, you can tell visually that fruits A and B are similar. Let’s measure how close they are. To find the distance between two points, you use the Pythagorean formula. Here’s the distance between A and B, for example. The distance between A and B is 1. You can find the rest of the distances, too.

