Graph theory-based approach to optimize single-product flow-line configurations of RMS