Implement dependency graph. Closes #2.
Merge pull request #6 from ad510/dependency-graph

Implement dependency graph. Closes #2.