Uses maximum matching to calculate a schedule.