Add dependency graph functions
Add function to return an adjacency list representation of the graph