Skip to content

Resource · Guide or article

Strongly Connected Component

Two-sentence definition of strong connectivity in directed graphs: vertices are strongly connected when each can reach the other.

Reviewed

Open the original: Strongly Connected Component (opens the original site in a new tab)

Practice this topicOpens the practice interviewer with a question on Graphs.

Add to a roadmap

Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.

Source content: English

A directed graph is called strongly connected if there is a path in each direction between each pair of vertices of the graph. In a directed graph G that may not itself be strongly connected, a pair of vertices u and v are said to be strongly connected to each other if there is a path in each direction between them. Graph with strongly connected components marked

PrepKit overview

PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.

Suited to
The source does not state a level
Format
Reference

What it covers

  • Definition of a strongly connected graph and of strongly connected vertex pairs
  • One image of a directed graph with its components marked

How to use it

PrepKit study advice, not a claim made by the source.

Study Kosaraju's or Tarjan's algorithm from another source, implement it, and check your output against the marked components in the README's image.

Scope and limitations

Barely more than a definition. No algorithm, complexity, example walkthrough or code is in the README, and the only further reading is a Wikipedia article and one YouTube video.

Access and format

Free English README on GitHub in the MIT-licensed trekhleb/javascript-algorithms repository.

Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 85293e3e2b88

Evidence behind this overview
  • src/algorithms/graph/strongly-connected-components/README.md

Pages that include this

Get the PrepKit newsletter

Optional. You don't need it to use PrepKit.

How we handle your email