If i have this links:
How can i find witch pair of distinct cities are connected using 2 links ? Any ideea ? Thanks
Code:
link(detroit,toronto).
link(chicago,washington).
link(denver,sacramento).
link(sacramento,chicago).
link(toronto,chicago).
....................
How can i find witch pair of distinct cities are connected using 2 links ? Any ideea ? Thanks