Text this: Spline approximation of multivalued functions in linear structures routing