code: def has_edge(self, edge):
          
          u, v = edge
          return (u, v) in self.edge_properties
docs: Return whether an edge exists.
  
          @type  edge: tuple
          @param edge: Edge.
  
          @rtype:  boolean
          @return: Truth-value for edge existence.