Move graphing function into utils.
Simplify @walkDependencies.