Implemented method for fetching ancestors on DependencyGraph. Closes #12