Warshall's algorithm

Warshall's Algorithm is the general algorithm for calculating transitive closures of binary operations. It was later redeveloped as Floyd-Warshall's Algorithm to be more general, but this algorithm can be used to calculate graph connectivity.