Efficient Algorithms for Abstract Flow with Partial Switching