Text this: Weighted min cost flows