def sort_apply_nodes(inputs, outputs, cmps):
 return posort(list_of_nodes(inputs, outputs), *cmps)

def sort_apply_nodes ( inputs , outputs , cmps ) : return posort ( list_of_nodes ( inputs , outputs ) , * cmps )
order a graph of apply nodes according to a list of comparators .