GraphsDS3 modified, depth-first seach, and test added

First test case seems to work; try with more test cases