| 474 | } |
| 475 | |
| 476 | QGNode *QueryGraph_GetNodeByAlias |
| 477 | ( |
| 478 | const QueryGraph *qg, |
| 479 | const char *alias |
| 480 | ) { |
| 481 | uint node_count = QueryGraph_NodeCount(qg); |
| 482 | for(uint i = 0; i < node_count; i ++) { |
| 483 | if(!strcmp(qg->nodes[i]->alias, alias)) return qg->nodes[i]; |
| 484 | } |
| 485 | return NULL; |
| 486 | } |
| 487 | |
| 488 | QGEdge *QueryGraph_GetEdgeByAlias |
| 489 | ( |