def sort_schedule_fn(*cmps):
 dependence = make_dependence_cmp()
 cmps = ((dependence,) + cmps)
 def schedule(fgraph):
  '\n        Order nodes in a FunctionGraph.\n\n        '
  return sort_apply_nodes(fgraph.inputs, fgraph.outputs, cmps)
 return schedule

def sort_schedule_fn ( * cmps ) : dependence = make_dependence_cmp ( ) cmps = ( ( dependence , ) + cmps ) def schedule ( fgraph ) : return sort_apply_nodes ( fgraph . inputs , fgraph . outputs , cmps ) return schedule
make a schedule function from comparators .