Fix SOAC flow graph sorting.
Add recursive dependencies to SOAC flow graph.