class_docstr: A GPU Graph Object (Base class of other graph types)
  
  Parameters
  ----------
  m_graph : cuGraph.MultiGraph object or None (default=None)
      Initialize the graph from a cugraph.MultiGraph object
  directed : boolean, optional (default=False)
      Indicated is the graph is directed.
  
  Examples
  --------
  >>> # undirected graph
  >>> G = cugraph.Graph()
  >>> # directed graph
  >>> G = cugraph.Graph(directed=True)
class_docstr_tok: ["A","GPU","Graph","Object","(","Base","class","of","other","graph","types",")","Parameters","--","--","--","--","--","m_graph",":","cuGraph.MultiGraph","object","or","None","(","default=None",")","Initialize","the","graph","from","a","cugraph.MultiGraph","object","directed",":","boolean",",","optional","(","default=False",")","Indicated","is","the","graph","is","directed",".","Examples","--","--","--","--",">",">",">","#","undirected","graph",">",">",">","G","=","cugraph.Graph","(",")",">",">",">","#","directed","graph",">",">",">","G","=","cugraph.Graph","(","directed=True",")"]
docstr: Given a DataFrame containing external vertex ids in the identified
  columns, return a DataFrame containing the internal vertex ids as the
  specified column name.  Optionally drop the external vertex id columns.
  Optionally preserve the order of the original DataFrame.
  
  Parameters
  ----------
  df: cudf.DataFrame or dask_cudf.DataFrame
      A DataFrame containing external vertex identifiers that will be
      converted into internal vertex identifiers.
  
  internal_column_name: string
      Name of column to contain the internal vertex id
  
  external_column_name: string or list of strings
      Name of the column(s) containing the external vertex ids
  
  drop: bool, optional (default=True)
      Drop the external columns from the returned DataFrame
  
  preserve_order: bool, optional (default=False)
      Preserve the order of the data frame (requires an extra sort)
  
  Returns
  -------
  df : cudf.DataFrame or dask_cudf.DataFrame
      Original DataFrame with new column containing internal vertex
      id
docstr_tok: ["Given","a","DataFrame","containing","external","vertex","ids","in","the","identified","columns",",","return","a","DataFrame","containing","the","internal","vertex","ids","as","the","specified","column","name",".","Optionally","drop","the","external","vertex","id","columns",".","Optionally","preserve","the","order","of","the","original","DataFrame",".","Parameters","--","--","--","--","--","df",":","cudf.DataFrame","or","dask_cudf.DataFrame","A","DataFrame","containing","external","vertex","identifiers","that","will","be","converted","into","internal","vertex","identifiers",".","internal_column_name",":","string","Name","of","column","to","contain","the","internal","vertex","id","external_column_name",":","string","or","list","of","strings","Name","of","the","column","(","s",")","containing","the","external","vertex","ids","drop",":","bool",",","optional","(","default=True",")","Drop","the","external","columns","from","the","returned","DataFrame","preserve_order",":","bool",",","optional","(","default=False",")","Preserve","the","order","of","the","data","frame","(","requires","an","extra","sort",")","Returns","--","--","--","-","df",":","cudf.DataFrame","or","dask_cudf.DataFrame","Original","DataFrame","with","new","column","containing","internal","vertex","id"]
code: def add_internal_vertex_id(
      self,
      df,
      internal_column_name,
      external_column_name,
      drop=True,
      preserve_order=False,
  ):
      """
      Given a DataFrame containing external vertex ids in the identified
      columns, return a DataFrame containing the internal vertex ids as the
      specified column name.  Optionally drop the external vertex id columns.
      Optionally preserve the order of the original DataFrame.
  
      Parameters
      ----------
      df: cudf.DataFrame or dask_cudf.DataFrame
          A DataFrame containing external vertex identifiers that will be
          converted into internal vertex identifiers.
  
      internal_column_name: string
          Name of column to contain the internal vertex id
  
      external_column_name: string or list of strings
          Name of the column(s) containing the external vertex ids
  
      drop: bool, optional (default=True)
          Drop the external columns from the returned DataFrame
  
      preserve_order: bool, optional (default=False)
          Preserve the order of the data frame (requires an extra sort)
  
      Returns
      -------
      df : cudf.DataFrame or dask_cudf.DataFrame
          Original DataFrame with new column containing internal vertex
          id
  
      """
      return self.renumber_map.add_internal_vertex_id(
          df,
          internal_column_name,
          external_column_name,
          drop,
          preserve_order,
      )
  
imports: import numpy
  from .graph_implementation import simpleGraphImpl, simpleDistributedGraphImpl, npartiteGraphImpl
  import cudf
  import dask_cudf
  from cugraph.utilities.utils import import_optional
label_desc: Use image node_id 13 for calling the Graph obj's underlying member method code with example usage: obj.add_internal_vertex_id(df, internal_column_name, external_column_name, drop, preserve_order) and returns: self