code: def from_pandas_adjacency(df, create_using=Graph):
      """
      Initializes the graph from pandas adjacency matrix.
  
      Parameters
      ----------
      df : pandas.DataFrame
          A DataFrame that contains edge information
  
      create_using: cugraph.Graph (instance or class), optional (default=Graph)
          Specify the type of Graph to create. Can pass in an instance to create
          a Graph instance with specified 'directed' attribute.
      """
      if create_using is None:
          G = Graph()
      elif isinstance(create_using, Graph):
          attrs = {"directed": create_using.is_directed()}
          G = type(create_using)(**attrs)
      elif type(create_using) is type(Graph):
          G = create_using()
      else:
          raise TypeError(
              "create_using must be a cugraph.Graph "
              "(or subclass) type or instance, got: "
              f"{type(create_using)}"
          )
  
      G.from_pandas_adjacency(df)
      return G
  
file_path: cugraph/python/cugraph/cugraph/structure/convert_matrix.py
imports: import cudf
  import dask_cudf
  from cugraph.structure.graph_classes import Graph
label_desc: Use image node_id 6 for calling a global function with example usage: from_pandas_adjacency(df, create_using) and returns: G