Why have people said Hamlet was an idea of the Oedipus Complex?
“Hamlet and Oedipus,” a book by Ernest Jones, expounds the theory that the title character in Shakespeare’s “Hamlet” is motivated by an Oedipus complex — a son’s desire to kill his father and have sex with his mother. Briefly, Jones argues that Claudius, by killing Hamlet’s father and marrying Hamlet’s mother, has done what Hamlet himself wanted to do, and that Hamlet therefore has trouble deciding to kill Claudius because if he did so, he would, in a certain symbolic sense, be killing himself. For a more in-depth exploration of the Hamlet/Oedipus theory, you can do a web search on “Hamlet and Oedipus.