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

Function _AddEdgeToIndices

src/graph/graph_hub.c:80–90  ·  view source on GitHub ↗

add edge to any relevant index

Source from the content-addressed store, hash-verified

78
79// add edge to any relevant index
80static void _AddEdgeToIndices(GraphContext *gc, Edge *e) {
81 Schema *s = NULL;
82 Graph *g = gc->g;
83
84 int relation_id = Edge_GetRelationID(e);
85
86 s = GraphContext_GetSchemaByID(gc, relation_id, SCHEMA_EDGE);
87 ASSERT(s != NULL);
88
89 Schema_AddEdgeToIndices(s, e);
90}
91
92void CreateNode
93(

Callers 1

UpdateEntityPropertiesFunction · 0.85

Calls 3

Edge_GetRelationIDFunction · 0.85
Schema_AddEdgeToIndicesFunction · 0.85

Tested by

no test coverage detected