A note on trees of maximum weight and restricted degrees