Clean up Platform#dependency_graph.