| 26 | } |
| 27 | |
| 28 | std::string RelExpression::detailsToString() const { |
| 29 | std::string result = toString(); |
| 30 | switch (relType) { |
| 31 | case QueryRelType::SHORTEST: { |
| 32 | result += "SHORTEST"; |
| 33 | } break; |
| 34 | case QueryRelType::ALL_SHORTEST: { |
| 35 | result += "ALL SHORTEST"; |
| 36 | } break; |
| 37 | case QueryRelType::WEIGHTED_SHORTEST: { |
| 38 | result += "WEIGHTED SHORTEST"; |
| 39 | } break; |
| 40 | case QueryRelType::ALL_WEIGHTED_SHORTEST: { |
| 41 | result += "ALL WEIGHTED SHORTEST"; |
| 42 | } break; |
| 43 | default: |
| 44 | break; |
| 45 | } |
| 46 | if (QueryRelTypeUtils::isRecursive(relType)) { |
| 47 | result += std::to_string(recursiveInfo->bindData->lowerBound); |
| 48 | result += ".."; |
| 49 | result += std::to_string(recursiveInfo->bindData->upperBound); |
| 50 | } |
| 51 | return result; |
| 52 | } |
| 53 | |
| 54 | std::vector<ExtendDirection> RelExpression::getExtendDirections() const { |
| 55 | std::vector<ExtendDirection> ret; |
no test coverage detected