finished DerivedGraph implementation and provided first stub of test cases.