graph: minimum number of staps between points in a map