| 422 | } |
| 423 | |
| 424 | void GraphContext_RemoveSchema(GraphContext *gc, int schema_id, SchemaType t) { |
| 425 | if(t == SCHEMA_NODE) { |
| 426 | Schema *schema = gc->node_schemas[schema_id]; |
| 427 | Schema_Free(schema); |
| 428 | gc->node_schemas = array_del(gc->node_schemas, schema_id); |
| 429 | } else { |
| 430 | Schema *schema = gc->relation_schemas[schema_id]; |
| 431 | Schema_Free(schema); |
| 432 | gc->relation_schemas = array_del(gc->relation_schemas, schema_id); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | const char *GraphContext_GetEdgeRelationType(const GraphContext *gc, Edge *e) { |
| 437 | int reltype_id = Edge_GetRelationID(e); |
no test coverage detected