| 128 | } |
| 129 | |
| 130 | void QGNode_AddLabel |
| 131 | ( |
| 132 | QGNode *n, |
| 133 | const char *l, |
| 134 | int l_id |
| 135 | ) { |
| 136 | ASSERT(n != NULL); |
| 137 | ASSERT(l != NULL); |
| 138 | |
| 139 | // node already labeled as l |
| 140 | if(QGNode_HasLabel(n, l)) return; |
| 141 | |
| 142 | array_append(n->labels, l); |
| 143 | array_append(n->labelsID, l_id); |
| 144 | } |
| 145 | |
| 146 | inline bool QGNode_HighlyConnected |
| 147 | ( |
no test coverage detected