Women who hug their exs.

In the last month I've been hugged by at least two ex-girlfriends. These were both women who dumped me, rather than me dumping them. In both cases I'm a little conflicted between wanting them back (because I'm an idiot who wants things he can't have) and wanting to slap them for screwing with my head and my heart (not to mention my fantasy life). What is it women are thinking in these situations? I don't know of any ex of mine where physical intimacy, no matter how platonic the intentions, doesn't provoke thoughts and memories which are anything but platonic. And that immediately scratches at the breakup scars. It's a strange mixture of heartbreak and happiness. While I'll bitch about it, the truth is that as much as I hate reliving being dumped, I don't really want it to end.