Added helper function for complete checks to FloydWarshall