docstr: Return an undirected copy of the graph.
  
  Note: This will discard any edge ids or edge types but will
  preserve edge weights if present.
docstr_tok: ["Return","an","undirected","copy","of","the","graph",".","Note",":","This","will","discard","any","edge","ids","or","edge","types","but","will","preserve","edge","weights","if","present","."]
code: def to_undirected(self, G, store_transposed=False):
      """
      Return an undirected copy of the graph.
  
      Note: This will discard any edge ids or edge types but will
      preserve edge weights if present.
      """
      G.properties.renumbered = self.properties.renumbered
      G.renumber_map = self.renumber_map
      if self.properties.directed is False:
          G.edgelist = self.edgelist
          G.adjlist = self.adjlist
          G.transposedadjlist = self.transposedadjlist
      else:
          df = self.edgelist.edgelist_df
          if self.edgelist.weights:
              source_col, dest_col, value_col = symmetrize(
                  df,
                  simpleGraphImpl.srcCol,
                  simpleGraphImpl.dstCol,
                  simpleGraphImpl.edgeWeightCol,
              )
          else:
              source_col, dest_col = symmetrize(
                  df, simpleGraphImpl.srcCol, simpleGraphImpl.dstCol
              )
              value_col = None
          G.edgelist = simpleGraphImpl.EdgeList(
              source_col, dest_col, value_col
          )
  
      if simpleGraphImpl.edgeWeightCol in self.edgelist.edgelist_df:
          value_col = self.edgelist.edgelist_df[
              simpleGraphImpl.edgeWeightCol
          ]
      else:
          value_col = None
  
      G._make_plc_graph(value_col, store_transposed)
  
imports: from cugraph.structure import graph_primtypes_wrapper
  from cugraph.structure.graph_primtypes_wrapper import Direction
  from cugraph.structure.symmetrize import symmetrize
  from cugraph.structure.number_map import NumberMap
  import cugraph.dask.common.mg_utils
  import cudf
  import dask_cudf
  import cugraph.dask.comms.comms
  import pandas
  import numpy
  import warnings
  from cugraph.dask.structure import replication
  from typing import Union, Dict
  from pylibcugraph import get_two_hop_neighbors, select_random_vertices
  from pylibcugraph import ResourceHandle, GraphProperties, SGGraph
label_desc: Use image node_id 29 for calling the simpleGraphImpl obj's underlying member method code with example usage: obj.to_undirected(G, store_transposed) without return types