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

Function Graph_GetNode

src/graph/graph.c:541–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541bool Graph_GetNode
542(
543 const Graph *g,
544 NodeID id,
545 Node *n
546) {
547 ASSERT(g != NULL);
548 ASSERT(n != NULL);
549
550 n->id = id;
551 n->attributes = _Graph_GetEntity(g->nodes, id);
552
553 return (n->attributes != NULL);
554}
555
556bool Graph_GetEdge
557(

Callers 15

ApplyLabelsFunction · 0.85
ApplyDeleteNodeFunction · 0.85
Constraint_EnforceNodesFunction · 0.85
_Index_PopulateNodeIndexFunction · 0.85
AR_SHORTEST_PATHFunction · 0.85
AR_STARTNODEFunction · 0.85
AR_ENDNODEFunction · 0.85
UpdateNodePropertyFunction · 0.85
Graph_CreateEdgeFunction · 0.85
_JsonEncoder_EdgeFunction · 0.85
_UpdateRecordFunction · 0.85

Calls 1

_Graph_GetEntityFunction · 0.85

Tested by 7

test_noPathsFunction · 0.68
test_longest_PathsFunction · 0.68
test_upToThreeLegsPathsFunction · 0.68
test_twoLegPathsFunction · 0.68
test_removeNodesFunction · 0.68
test_getNodeFunction · 0.68