constructs index
| 219 | |
| 220 | // constructs index |
| 221 | void Index_Populate |
| 222 | ( |
| 223 | Index idx, |
| 224 | Graph *g |
| 225 | ) { |
| 226 | ASSERT(g != NULL); |
| 227 | ASSERT(idx != NULL); |
| 228 | ASSERT(!Index_Enabled(idx)); // index should have pending changes |
| 229 | |
| 230 | //-------------------------------------------------------------------------- |
| 231 | // populate index |
| 232 | //-------------------------------------------------------------------------- |
| 233 | |
| 234 | if(Index_GraphEntityType(idx) == GETYPE_NODE) { |
| 235 | _Index_PopulateNodeIndex(idx, g); |
| 236 | } else { |
| 237 | _Index_PopulateEdgeIndex(idx, g); |
| 238 | } |
| 239 | } |
| 240 |
no test coverage detected