docstr: remove vertex v and all its edges.
docstr_tok: ["remove","vertex","v","and","all","its","edges","."]
code: def remove_vertex(self, x):
      """
      remove vertex v and all its edges.
      """
      c = x.component
      if c not in self.components:
          return None
      try:
          x = c.remove_vertex(x)
          if c.order() == 0:
              self.components.remove(c)
      except ValueError:
          for e in x.detach():
              c.edgesPoset.remove(e)
          x = c.verticesPoset.remove(x)
          self.components.remove(c)
          tmpg = type(self)(
              c.verticesPoset, c.edgesPoset, self.directed
          )
          assert len(tmpg.components) == 2
          self.components.extend(tmpg.components)
      return x
  
imports: from typing import List
  from .graphBase import GraphBase
  from graphistry.layout.utils import Poset
  import pandas
label_desc: Use image node_id 10 for calling the Graph obj's underlying member method code with example usage: obj.remove_vertex(x) and returns: x, None