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

Function QueryGraph_GetNodeByAlias

src/graph/query_graph.c:476–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476QGNode *QueryGraph_GetNodeByAlias
477(
478 const QueryGraph *qg,
479 const char *alias
480) {
481 uint node_count = QueryGraph_NodeCount(qg);
482 for(uint i = 0; i < node_count; i ++) {
483 if(!strcmp(qg->nodes[i]->alias, alias)) return qg->nodes[i];
484 }
485 return NULL;
486}
487
488QGEdge *QueryGraph_GetEdgeByAlias
489(

Calls 1

QueryGraph_NodeCountFunction · 0.85

Tested by 3

test_DFSLevelsFunction · 0.68