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: Initializes the graph from numpy array containing adjacency matrix.
  
  Parameters
  ----------
  np_array : numpy.array
      A Numpy array that contains adjacency information
  
  nodes: array-like or None, optional (default=None)
      A list of column names, acting as labels for nodes
docstr_tok: ["Initializes","the","graph","from","numpy","array","containing","adjacency","matrix",".","Parameters","--","--","--","--","--","np_array",":","numpy.array","A","Numpy","array","that","contains","adjacency","information","nodes",":","array-like","or","None",",","optional","(","default=None",")","A","list","of","column","names",",","acting","as","labels","for","nodes"]
code: def from_numpy_array(self, np_array, nodes=None):
      """
      Initializes the graph from numpy array containing adjacency matrix.
  
      Parameters
      ----------
      np_array : numpy.array
          A Numpy array that contains adjacency information
  
      nodes: array-like or None, optional (default=None)
          A list of column names, acting as labels for nodes
      """
      np_array = np.asarray(np_array)
      if len(np_array.shape) != 2:
          raise ValueError("np_array is not a 2D matrix")
  
      src, dst = np_array.nonzero()
      weight = np_array[src, dst]
      df = cudf.DataFrame()
      if nodes is not None:
          df["src"] = nodes[src]
          df["dst"] = nodes[dst]
      else:
          df["src"] = src
          df["dst"] = dst
      df["weight"] = weight
      self.from_cudf_edgelist(df, "src", "dst", edge_attr="weight")
  
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 9 for calling the Graph obj's underlying member method code with example usage: obj.from_numpy_array(np_array, nodes) without return types