Fixed order of processors in pipeline using ruby's tsort