Bug fixes to makeDepGraph()