add edge to any relevant index
| 78 | |
| 79 | // add edge to any relevant index |
| 80 | static 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 | |
| 92 | void CreateNode |
| 93 | ( |
no test coverage detected