| 486 | } |
| 487 | |
| 488 | QGEdge *QueryGraph_GetEdgeByAlias |
| 489 | ( |
| 490 | const QueryGraph *qg, |
| 491 | const char *alias |
| 492 | ) { |
| 493 | uint edge_count = QueryGraph_EdgeCount(qg); |
| 494 | for(uint i = 0; i < edge_count; i ++) { |
| 495 | if(!strcmp(qg->edges[i]->alias, alias)) return qg->edges[i]; |
| 496 | } |
| 497 | return NULL; |
| 498 | } |
| 499 | |
| 500 | EntityType QueryGraph_GetEntityTypeByAlias |
| 501 | ( |