Merge "Add method to compute the relationship between two paths."