cugraph.structure.NumberMap.renumber_and_segment#

static NumberMap.renumber_and_segment(df, src_col_names, dst_col_names, preserve_order=False, store_transposed=False, legacy_renum_only=False)[source]#

Given an input dataframe with its column names, this function returns the renumbered dataframe(if renumbering occured) along with a mapping from internal to external vertex IDs. the parameter ‘preserve_order’ ensures that the order of the edges is preserved during renumbering.