Topological sort in plain PL/PgSQL (and hstore)
-
Updated
Jul 23, 2017 - Go
Topological sort in plain PL/PgSQL (and hstore)
C implementation of bidirectional source-sink peeling: linear-time O(V+E) cycle detection for directed dependency graphs. Repeatedly removes vertices with zero in-degree or zero out-degree; whatever remains contains a cycle.
Educational implementation of Kahn’s topological sort, featuring a reusable generic library, deterministic JSON CLI, cycle detection, and xUnit tests.
Visual node-based pipeline builder (React + React Flow) with a FastAPI backend that validates the graph as a cycle-free DAG using Kahn's algorithm.
To associate your repository with the kahns-algorithm topic, visit your repo's landing page and select "manage topics."