| 69 | } |
| 70 | |
| 71 | bool contains_edge(const QueryGraph *qg, const QGEdge *e) { |
| 72 | uint count = QueryGraph_EdgeCount(qg); |
| 73 | for(uint i = 0; i < count; i ++) { |
| 74 | if(qg->edges[i] == e) return true; |
| 75 | } |
| 76 | return false; |
| 77 | } |
| 78 | |
| 79 | QueryGraph *SingleNodeGraph() { |
| 80 | // create a single node graph |
no test coverage detected