code: def __init__(self, path):
      self._num_nodes = np.load(os.path.join(path, "num_nodes.npy"))
      self._edges = np.load(
          os.path.join(path, "edges.npy"), mmap_mode="r"
      )
      self._num_graph = np.load(os.path.join(path, "num_graph.npy"))
      self._graph_lod = np.load(os.path.join(path, "graph_lod.npy"))
  
      if os.path.isdir(os.path.join(path, "adj_src")):
          self._adj_src_index = MemmapEdgeIndex(
              os.path.join(path, "adj_src")
          )
      else:
          self._adj_src_index = None
  
      if os.path.isdir(os.path.join(path, "adj_dst")):
          self._adj_dst_index = MemmapEdgeIndex(
              os.path.join(path, "adj_dst")
          )
      else:
          self._adj_dst_index = None
  
      def load_feat(feat_path):
          """Load features from .npy file."""
          feat = {}
          if os.path.isdir(feat_path):
              for feat_name in os.listdir(feat_path):
                  feat[os.path.splitext(feat_name)[0]] = np.load(
                      os.path.join(feat_path, feat_name), mmap_mode="r"
                  )
          return feat
  
      self._node_feat = load_feat(os.path.join(path, "node_feat"))
      self._edge_feat = load_feat(os.path.join(path, "edge_feat"))
  
imports: import os
  import numpy
  import pickle
  import time
  import pgl.graph_kernel
  from collections import defaultdict
label_desc: Use image node_id 1 to create a new MemmapGraph object from inherited base classes: Graph with example: obj = MemmapGraph(path)