Determining If A Graph Is A Function