Dependency graph generation.