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",")"]
code: def __init__(self, m_graph=None, directed=False):
      self._Impl = None
      self.graph_properties = Graph.Properties(directed)
      if m_graph is not None:
          if isinstance(m_graph, MultiGraph):
              elist = m_graph.view_edge_list()
              if m_graph.is_weighted():
                  weights = m_graph.weight_column
              else:
                  weights = None
              self.from_cudf_edgelist(
                  elist,
                  source=m_graph.source_columns,
                  destination=m_graph.destination_columns,
                  edge_attr=weights,
              )
          else:
              raise TypeError(
                  "m_graph can only be an instance of a "
                  f"cugraph.MultiGraph, got {type(m_graph)}"
              )
  
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 1 to create a new Graph object  with example: obj = Graph(m_graph, directed)