working on test cases and completing graph helper