Implement KwsConstraint::getTransitivity.
Remove trailing whitespaces.