code: function(target, vertex) {
        vertex.prev = target.prev;
        vertex.next = target;
  
        if (vertex.prev === null) {
          this.head = vertex;
        } else {
          vertex.prev.next = vertex;
        }
  
        target.prev = vertex;
  
        return this;
      }
docs: Inserts a vertex before the target vertex