Data For Science

Data For Science

Graphs

Kahn's Algorithm for Topological Sorting

Sorting the nodes of a DAG

Bruno Gonçalves's avatar
Bruno Gonçalves
Sep 21, 2022
∙ Paid

This week we explore Kahn’s algorithm for topological sorting of Directed Acyclical Graphs, a simple but powerful algorithm introduced in 1962 for the automatic scheduling of computational tasks while taking into account all of their dependencies. As a test case, we apply it to a large citation network dataset

Share

Topological Sorting

Topological Sorting is a …

User's avatar

Continue reading this post for free, courtesy of Bruno Gonçalves.

Or purchase a paid subscription.
© 2026 Data For Science, Inc · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture