docstr: add edge e and its vertices into the Graph possibly merging the associated graph_core components
docstr_tok: ["add","edge","e","and","its","vertices","into","the","Graph","possibly","merging","the","associated","graph_core","components"]
code: def add_edge(self, e):
      """
      add edge e and its vertices into the Graph possibly merging the associated graph_core components
      """
      x = e.v[0]
      y = e.v[1]
      x = self.add_vertex(x)
      y = self.add_vertex(y)
  
      cx = x.component
      cy = y.component
  
      e = cy.add_edge(e)
      # connect (union) the graphs:
      if cx != cy:
          cx.union_update(cy)
          self.components.remove(cy)
      return e
  
imports: from typing import List
  from .graphBase import GraphBase
  from graphistry.layout.utils import Poset
  import pandas
label_desc: Use image node_id 3 for calling the Graph obj's underlying member method code with example usage: obj.add_edge(e) and returns: e