A Tarjan-based dependency management class.