Skip to content

table_collection.remap_nodes(id_map) method #2707

Closed as not planned
Closed as not planned

Description

@jeromekelleher

A useful extension to the keep_rows functions added in #2700 would be a way to remap all the node ID values in a TableCollection using a given id_map (i.e., the mapping array returned by node_table_keep_rows). The API would look something like

int
tsk_table_collection_remap_nodes(tsk_table_collection_t *self, const tsk_id_map_t *id_map, 
    tsk_size_t id_map_length, tsk_flags_t options)
{
    int ret = 0;
  
     ret = remap_id_column(self->edges->child, self->edges->num_rows, id_map, id_map_length);
     // etc
}

Activity

  1. added
    enhancement
    C API
    on Feb 16, 2023
  2. hyanwong commented on May 2, 2023

    @hyanwong
    Member

    I think this also addresses the node-reordering thing in #2060, right?

  3. moved this from Small things to Bigger things in Accessible Issueson Apr 30, 2025
  4. added
    future
    on Jun 12, 2025
  5. benjeffery commented on Jun 12, 2025

    @benjeffery
    Member

    Closing for inactivity and labelling "future", please re-open if you plan to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C APIenhancementfuture

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions