Task 5: still has problem on the marginal vertices even using edge increment method