graph tool + 2 test cases