Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Determine reachability between all pairs of vertices in a directed graph. Using a variation of the Floyd-Warshall algorithm, we iteratively discover transitive paths i → k → j in O(V³).
The output is a boolean matrix where M[i][j] = 1 indicates that a path exists from i to j, no matter how many edges it takes.
This algorithm "materializes" abstract connectivity into direct matrix entries, which is crucial for static analysis and logic inference.