| 177 | } |
| 178 | |
| 179 | std::vector<std::shared_ptr<NodeOrRelExpression>> QueryGraph::getAllPatterns() const { |
| 180 | std::vector<std::shared_ptr<NodeOrRelExpression>> patterns; |
| 181 | for (auto& p : queryNodes) { |
| 182 | patterns.push_back(p); |
| 183 | } |
| 184 | for (auto& p : queryRels) { |
| 185 | patterns.push_back(p); |
| 186 | } |
| 187 | return patterns; |
| 188 | } |
| 189 | |
| 190 | void QueryGraph::addQueryNode(std::shared_ptr<NodeExpression> queryNode) { |
| 191 | // Note that a node may be added multiple times. We should only keep one of it. |
no test coverage detected