cugraph.structure.NumberMap.to_internal_vertex_id#
- NumberMap.to_internal_vertex_id(df, col_names=None)[source]#
Given a collection of external vertex ids, return the internal vertex ids
- Parameters:
- df: cudf.DataFrame, cudf.Series, dask_cudf.DataFrame, dask_cudf.Series
Contains a list of external vertex identifiers that will be converted into internal vertex identifiers
- col_names: (optional) list of strings
This list of 1 or more strings contain the names of the columns that uniquely identify an external vertex identifier
- Returns:
- vertex_idscudf.Series or dask_cudf.Series
The vertex identifiers. Note that to_internal_vertex_id does not guarantee order or partitioning (in the case of dask_cudf) of vertex ids. If order matters use add_internal_vertex_id