| 61 | } |
| 62 | |
| 63 | bool contains_node(const QueryGraph *qg, const QGNode *n) { |
| 64 | uint count = QueryGraph_NodeCount(qg); |
| 65 | for(uint i = 0; i < count; i ++) { |
| 66 | if(qg->nodes[i] == n) return true; |
| 67 | } |
| 68 | return false; |
| 69 | } |
| 70 | |
| 71 | bool contains_edge(const QueryGraph *qg, const QGEdge *e) { |
| 72 | uint count = QueryGraph_EdgeCount(qg); |
no test coverage detected