Tarjan's strongly connected components algorithm

Tarjan's strongly connected components algorithm
Tarjan's algorithm animation
Data structureGraph
Worst-case performance

Tarjan's strongly connected components algorithm is an algorithm in graph theory for finding the strongly connected components (SCCs) of a directed graph. It runs in linear time, matching the time bound for alternative methods including Kosaraju's algorithm and the path-based strong component algorithm. The algorithm is named for its inventor, Robert Tarjan.[1]

  1. ^ Tarjan, R. E. (1972), "Depth-first search and linear graph algorithms" (PDF), SIAM Journal on Computing, 1 (2): 146–160, CiteSeerX 10.1.1.327.8418, doi:10.1137/0201010