Implement KwsConstraint::getTransitivity method.