| 36 | } |
| 37 | |
| 38 | static 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 |
| 55 | static void _AddNodeToIndices |
no test coverage detected