1. added code to create dependency graphs