Added comments to generateDependencyGraph()