code to build a dependency graph of a source code base