Solved should check on larger graphs