script for dependency graph