rename deps.go to graph.go and clean up interface accordingly