Topological order (safe change order)
codetopo_topo_sortCompute a safe dependency order for code-schema groups, returning topological groups and flagging cycles so you can plan changes without disguising cyclic dependencies.
Instructions
The safe change order of the graph: topological order of the SCC-condensed CODE_SCHEMA section 9 dependency DAG (Kahn's algorithm over Tarjan components). Groups are emitted in dependency order - every dependency of a group appears in an earlier group - members sorted by id. A multi-node group is a dependency cycle and is flagged cyclic, never disguised as an order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db_path | Yes | Path to the index database. |