Akamai interview question

How to find distance between two nodes in a graph using map-reduce?