The resignation of David Petraeus, sparked by the revelation that the former general was having an affair with biographer Paula…