Skip to content
← All questions

How do you determine if a directed graph is strongly connected?

To determine if a directed graph is strongly connected, you must verify that every pair of vertices is mutually reachable. If you find even one pair of vertices where one cannot reach the other, the graph is not strongly connected.

Conditions

  • The graph is directed.
  • You need to check mutual reachability for all vertex pairs.

Reasoning, step by step

  1. Select a pair of vertices u and v.
  2. Check if there is a directed path from u to v.
  3. Check if there is a directed path from v to u.
  4. Repeat this process for all pairs of vertices.
  5. If any pair fails the mutual reachability test, the graph is not strongly connected.
  6. If all pairs pass, the graph is strongly connected.

Example

In Graph 1, A can reach D, but D cannot reach A. Therefore, Graph 1 is not strongly connected. In Graph 2, B can reach A, but A cannot reach B, so it is also not strongly connected.

Common misconceptions

  • Only checking reachability in one direction.
  • Assuming that if a graph has a cycle, it is automatically strongly connected.

Watch the explanation

Connected concepts

Explore next

Related questions

Meet the concept

↗
Meet the concept

↗
Meet the concept

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.