Recursive solution for DagResolver, !tested, !stable, !finished