Function tskit::bindings::tsk_table_collection_set_indexes[][src]

pub unsafe extern "C" fn tsk_table_collection_set_indexes(
    self_: *mut tsk_table_collection_t,
    edge_insertion_order: *mut tsk_id_t,
    edge_removal_order: *mut tsk_id_t
) -> c_int

@brief Sets the edge insertion/removal index for this table collection

@rst This method sets the edge insertion/removal index for this table collection The index arrays should have the same number of edges that are in the edge table. The index is not checked for validity.

See the :ref:sec_c_api_table_indexes section for details on the index life-cycle. @endrst

@param self A pointer to a tsk_table_collection_t object. @param edge_insertion_order Array of tsk_id_t edge ids. @param edge_removal_order Array of tsk_id_t edge ids. @return Return 0 on success or a negative value on failure.