code: def node_has_edge_with_label(self, node_name, edge_label):
          
          G = self.G
          for edge in G.edges(node_name):
              to = edge[1]
  
              relation_name = G.edges[node_name, to]['relation']
              if relation_name == edge_label:
                  return to
          return None
docs: Looks for an edge from node_name to some other node with the specified
          label. Returns the node to which this edge points if it exists, or None
          if it doesn't.
  
          Parameters
          ----------
          G :
              The graph object
          node_name :
              Node that the edge starts at
          edge_label :
              The text in the relation property of the edge