Groups with the same prime graph as an almost sporadic simple group