code: def getAdjMat(self):
      graph = self.g.G
      node_size = self.g.node_size
      look_up = self.g.look_up_dict
      adj = np.zeros((node_size, node_size))
      for edge in self.g.G.edges():
          adj[look_up[edge[0]]][look_up[edge[1]]] = 1.0
          adj[look_up[edge[1]]][look_up[edge[0]]] = 1.0
      # ScaleSimMat
      return np.matrix(adj / np.sum(adj, axis=1))
  
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 2 for calling the GraRep obj's underlying member method code with example usage: obj.getAdjMat() and returns: np