Strong Connectivity
Understand the different techniques used to implement strong connectivity efficiently.
We'll cover the following
Let’s go back to the proper definition of connectivity in directed graphs. Recall that one vertex can reach another vertex in a directed graph if contains a directed path from to . Also recall that denotes the set of all vertices that can reach. Two vertices and are strongly connected if can reach and can reach . A directed graph is strongly connected if and only if every pair of vertices is strongly connected.
Tedious definition-chasing implies that strong connectivity is an equivalence relation over the set of vertices of any directed graph, just like connectivity in undirected graphs. The equivalence classes of this relation are called the strongly connected components or, more simply, the strong components of . Equivalently, a strong component of is a maximal strongly connected subgraph of . A directed graph is strongly connected if and only if has exactly one strong component; at the other extreme, is a dag if and only if every strong component of consists of a single vertex.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy