docs: def add_vertex(self, vertex, **attr):
          """
          Add vertex and update vertex attributes
          """
          self.vertices[vertex] = []
          if attr:
              self.nodes[vertex] = attr
          self.pred[vertex] = []
          self.succ[vertex] = []