Remap a temp edge ID to its final sequential ID, or 0 if out of range. */
| 1402 | |
| 1403 | /* Remap a temp edge ID to its final sequential ID, or 0 if out of range. */ |
| 1404 | static int64_t remap_id(const int64_t *temp_to_final, int64_t max_temp_id, int64_t temp_id) { |
| 1405 | return (temp_id < max_temp_id) ? temp_to_final[temp_id] : 0; |
| 1406 | } |
| 1407 | |
| 1408 | /* Build dump-ready node array with sequential IDs. Populates temp_to_final mapping. */ |
| 1409 | static int cmp_dump_vectors_by_id(const void *a, const void *b) { |