this portion is far more similar to the synoptics bakwa for numerically meaningful output the floyd warshall algorithm assumes that there are no negative cycles