MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / contains_node

Function contains_node

tests/unit/test_query_graph.c:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool 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
71bool contains_edge(const QueryGraph *qg, const QGEdge *e) {
72 uint count = QueryGraph_EdgeCount(qg);

Callers 1

Calls 1

QueryGraph_NodeCountFunction · 0.85

Tested by

no test coverage detected