Apply dependencygraph.