cugraph.Graph.lookup_internal_vertex_id#

Graph.lookup_internal_vertex_id(df, column_name=None)[source]#

Given a DataFrame containing external vertex ids in the identified columns, or a Series containing external vertex ids, return a Series with the internal vertex ids. Note that this function does not guarantee order in single GPU mode, and does not guarantee order or partitioning in multi-GPU mode.

Parameters:
df: cudf.DataFrame, cudf.Series, dask_cudf.DataFrame, dask_cudf.Series

A DataFrame containing external vertex identifiers that will be converted into internal vertex identifiers.

column_name: string, optional (default=None)

Name of the column containing the external vertex ids

Returns:
seriescudf.Series or dask_cudf.Series

The internal vertex identifiers