Small change:: isGraph