docstr: add vertex v into the Graph as a new component
docstr_tok: ["add","vertex","v","into","the","Graph","as","a","new","component"]
code: def add_vertex(self, v):
      """
      add vertex v into the Graph as a new component
      """
      for c in self.components:
          if v in c.verticesPoset:
              return c.verticesPoset.get(v)
      g = self.component_class(directed=self.directed)
      v = g.add_single_vertex(v)
      self.components.append(g)
      print("add vertex v into the Graph as a new component")
      return v
  
imports: from typing import List
  from .graphBase import GraphBase
  from graphistry.layout.utils import Poset
  import pandas
label_desc: Use image node_id 2 for calling the Graph obj's underlying member method code with example usage: obj.add_vertex(v) and returns: v, c