Concept of Floyd-Warshall Algorithm