class_docstr: Implementation of SubHeterGraph in pgl.
  
  SubHeterGraph is inherit from :code:`HeterGraph`. 
  
  Args:
      num_nodes: number of nodes in a heterogeneous graph
      edges: dict, every element in dict is a list of (u, v) tuples.
      node_types (optional): list of (u, node_type) tuples to specify the node type of every node
      node_feat (optional): a dict of numpy array as node features
      edge_feat (optional): a dict of dict as edge features for every edge type
  
      reindex: A dictionary that maps parent hetergraph node id to subhetergraph node id.
class_docstr_tok: ["Implementation","of","SubHeterGraph","in","pgl",".","SubHeterGraph","is","inherit","from",":","code",":","`","HeterGraph","`",".","Args",":","num_nodes",":","number","of","nodes","in","a","heterogeneous","graph","edges",":","dict",",","every","element","in","dict","is","a","list","of","(","u",",","v",")","tuples",".","node_types","(","optional",")",":","list","of","(","u",",","node_type",")","tuples","to","specify","the","node","type","of","every","node","node_feat","(","optional",")",":","a","dict","of","numpy","array","as","node","features","edge_feat","(","optional",")",":","a","dict","of","dict","as","edge","features","for","every","edge","type","reindex",":","A","dictionary","that","maps","parent","hetergraph","node","id","to","subhetergraph","node","id","."]
code: def __init__(
      self,
      num_nodes,
      edges,
      node_types=None,
      node_feat=None,
      edge_feat=None,
      reindex=None,
  ):
      super(SubHeterGraph, self).__init__(
          num_nodes=num_nodes,
          edges=edges,
          node_types=node_types,
          node_feat=node_feat,
          edge_feat=edge_feat,
      )
  
      if reindex is None:
          reindex = {}
      self._from_reindex = reindex
      self._to_reindex = {u: v for v, u in reindex.items()}
  
imports: import os
  import time
  import numpy
  import pickle
  import time
  import pgl.graph_kernel
  from pgl.graph import Graph, MemmapGraph
label_desc: Use image node_id 1 to create a new SubHeterGraph object from inherited base classes: HeterGraph with example: obj = SubHeterGraph(num_nodes, edges, node_types, node_feat, edge_feat, reindex)