Relationship between points on a graph