code: def getAdj(self):
      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]]] = self.g.G[edge[0]][
              edge[1]
          ]["weight"]
      return adj
  
file_path: OpenNE/src/openne/sdne.py
imports: import tensorflow
  import numpy
label_desc: Use image node_id 2 for calling the SDNE2 obj's underlying member method code with example usage: obj.getAdj() and returns: adj