Generalized fractional revival on graphs