Cleaned up output for shortest path