Extension of Floyd Warshall algorithm to locate multiple paths.