Correctly initialize the distances in floyd_warshall_predecessor_distance.

Report distance 0 for the distance from a node to itself. Also adds a test to
be sure this is correct.