class_docstr: A custom graph to represent a query. Has additional helper methods specific to adding TypeQL patterns.
docstr: Add a "has" edge to represent ownership of an attribute
  Args:
      owner_var: The variable of the owner
      attribute_var: The variable of the owned attribute
  
  Returns:
      self
docstr_tok: ["Add","a","``","has","''","edge","to","represent","ownership","of","an","attribute","Args",":","owner_var",":","The","variable","of","the","owner","attribute_var",":","The","variable","of","the","owned","attribute","Returns",":","self"]
code: def add_has_edge(self, owner_var, attribute_var):
      """
      Add a "has" edge to represent ownership of an attribute
      Args:
          owner_var: The variable of the owner
          attribute_var: The variable of the owned attribute
  
      Returns:
          self
      """
      self.add_edge(owner_var, attribute_var, type="has")
      return self
  
file_path: typedb-ml/typedb_ml/networkx/query_graph.py
imports: import networkx
label_desc: Use image node_id 2 for calling the QueryGraph obj's underlying member method code with example usage: obj.add_has_edge(owner_var, attribute_var) and returns: self