Adding graph distance to Result.