The geometry of fractional branes