transitiveness

for two cities