|
|
|
|
|
by talolard
146 days ago
|
|
Not IAC, but I’ve been doing a similar trick to sequence adding type annotations to python code, Eg take the module graph, break the SCCs in a similar manner , then take a reverese topological sort of the imports (now a dag by construction). |
|
Do you use string-based forward references ("ClassName") to break the cycles? That's essentially our "empty shell" trick — decoupling the resource identity from its configuration to satisfy the graph.
Did you stick with Tarjan's for the SCC detection on the module graph?