so in this case, this says that the shortest path from zero to one is to go along zero, one and that's distance five and from zero to four, it's to go along zero, four and that's distance nine, and zero to seven, let's go take it zero, seven that's distance eight.