class_docstr: The class wrapper the PGL graph, the class involve the funtions to implement struc2vec algorithm.
docstr: output the degree of each node to a dict
docstr_tok: ["output","the","degree","of","each","node","to","a","dict"]
code: def add_degree_todict(self, node_id, degree, depth, opt1):
      """
      output the degree of each node to a dict
      """
      if node_id not in self.degree_list:
          self.degree_list[node_id] = dict()
      if depth not in self.degree_list[node_id]:
          self.degree_list[node_id][depth] = None
      if opt1:
          degree = np.array(np.unique(degree, return_counts=True)).T
      self.degree_list[node_id][depth] = degree
  
imports: import argparse
  import math
  import random
  import numpy
  import pgl
  from pgl import graph
  from pgl.graph_kernel import alias_sample_build_table
  from pgl.sample import alias_sample
  from data_loader import EdgeDataset
  from classify import train_lr_model
  from sklearn_classify import train_lr_l2_model
label_desc: Use image node_id 4 for calling the StrucVecGraph obj's underlying member method code with example usage: obj.add_degree_todict(node_id, degree, depth, opt1) without return types