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

Function contains_edge

tests/unit/test_query_graph.c:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool 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
79QueryGraph *SingleNodeGraph() {
80 // create a single node graph

Callers 1

Calls 1

QueryGraph_EdgeCountFunction · 0.85

Tested by

no test coverage detected