Fixed error and added complete graph test case