class_docstr: Indexing edges for fast graph queries
  Sorted edges and represent edges in compressed style like csc_matrix or csr_matrix.
  
      Args:
          u: A list of node id to be compressed.
          v: A list of node id that are connected with u.
          num_nodes: The exactive number of nodes.
      
docstr: Load EdgeIndex from path and return a EdgeIndex in numpy. 
  
  Args:
  
      path: The directory path of the stored Graph.
  
      mmap_mode: Default :code:`mmap_mode="r"`. If not None, memory-map the graph.  
docstr_tok: ["Load","EdgeIndex","from","path","and","return","a","EdgeIndex","in","numpy",".","Args",":","path",":","The","directory","path","of","the","stored","Graph",".","mmap_mode",":","Default",":","code",":","`","mmap_mode=","''","r","''","`",".","If","not","None",",","memory-map","the","graph","."]
code: def load(cls, path, mmap_mode="r"):
      """Load EdgeIndex from path and return a EdgeIndex in numpy.
  
      Args:
  
          path: The directory path of the stored Graph.
  
          mmap_mode: Default :code:`mmap_mode="r"`. If not None, memory-map the graph.
      """
  
      self = cls()
      self._degree = np.load(
          os.path.join(path, "degree.npy"), mmap_mode=mmap_mode
      )
      self._sorted_u = np.load(
          os.path.join(path, "sorted_u.npy"), mmap_mode=mmap_mode
      )
      self._sorted_v = np.load(
          os.path.join(path, "sorted_v.npy"), mmap_mode=mmap_mode
      )
      self._sorted_eid = np.load(
          os.path.join(path, "sorted_eid.npy"), mmap_mode=mmap_mode
      )
      self._indptr = np.load(
          os.path.join(path, "indptr.npy"), mmap_mode=mmap_mode
      )
      self._is_tensor = False
      return self
  
imports: import os
  import json
  import copy
  import numpy
  import paddle
  from paddle.framework import core
  from pgl.utils import op
  import pgl.graph_kernel
  from pgl.utils.helper import check_is_tensor, to_paddle_tensor
label_desc: Use image node_id 3 for calling the EdgeIndex obj's underlying member method code with example usage: obj.load(cls, path, mmap_mode) and returns: self