You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit implements [Tarjan's algorithm] for finding strongly-connected
components.
This algorithm takes `O(V+E)` time and uses `O(V+E)` space.
Tarjan's algorithm is usually presented as a recursive algorithm, but we do not
trust the input and cannot recurse over it for fear of blowing the
stack. Therefore, this implementation is iterative.
This will be used to do bottom-up inlining in Wasmtime's compilation
orchestration.
[Tarjan's algorithm]: https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm
0 commit comments