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

Function SingleNodeGraph

tests/unit/test_query_graph.c:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79QueryGraph *SingleNodeGraph() {
80 // create a single node graph
81 // (A)
82 size_t node_cap = 1;
83 size_t edge_cap = 0;
84
85 // create nodes
86 QGNode *A = QGNode_New("A");
87 QueryGraph *g = QueryGraph_New(node_cap, edge_cap);
88 QueryGraph_AddNode(g, A);
89
90 return g;
91}
92
93QueryGraph *TriangleGraph() {
94 // create a triangle graph

Callers 1

Calls 3

QGNode_NewFunction · 0.85
QueryGraph_NewFunction · 0.85
QueryGraph_AddNodeFunction · 0.85

Tested by

no test coverage detected