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

Function _DeleteEdgeFromIndices

src/graph/graph_hub.c:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static void _DeleteEdgeFromIndices
39(
40 GraphContext *gc,
41 Edge *e
42) {
43 Schema *s = NULL;
44 Graph *g = gc->g;
45
46 int relation_id = Edge_GetRelationID(e);
47
48 s = GraphContext_GetSchemaByID(gc, relation_id, SCHEMA_EDGE);
49
50 // update any indices this entity is represented in
51 Schema_RemoveEdgeFromIndices(s, e);
52}
53
54// add node to any relevant index
55static void _AddNodeToIndices

Callers 1

DeleteEdgesFunction · 0.85

Calls 3

Edge_GetRelationIDFunction · 0.85

Tested by

no test coverage detected