568c2d308c
When finding a circular dependencies, we must ensure that all dependencies of a node have been visited before adding it to the sorted list.