Slate is saying Gen Petraeus was having an affair with his biographer.
The woman with whom Gen. David Petraeus was having an affair is Paula Broadwell, the author of a recent hagiographic book about him, All In: The Education of General David Petraeus.
However, the source is anonymous.