code: def __init__(self, graph, Kstep, dim):
      self.g = graph
      self.Kstep = Kstep
      assert dim % Kstep == 0
      self.dim = int(dim / Kstep)
      self.train()
  
file_path: OpenNE/src/openne/grarep.py
imports: import math
  import numpy
  from numpy import linalg
  from sklearn.preprocessing import normalize
label_desc: Use image node_id 1 to create a new GraRep object from inherited base classes: object with example: obj = GraRep(graph, Kstep, dim)