class_docstr: Add homology properties of a scalar field f: R^n --> R associated with
  the geometry built from the VertexBase class
class_docstr_tok: ["Add","homology","properties","of","a","scalar","field","f",":","R^n","--",">","R","associated","with","the","geometry","built","from","the","VertexBase","class"]
docstr: Connects self to another vertex object v.
  
  Parameters
  ----------
  v : VertexBase or VertexScalarField object
docstr_tok: ["Connects","self","to","another","vertex","object","v.","Parameters","--","--","--","--","--","v",":","VertexBase","or","VertexScalarField","object"]
code: def connect(self, v):
      """Connects self to another vertex object v.
  
      Parameters
      ----------
      v : VertexBase or VertexScalarField object
      """
      if v is not self and v not in self.nn:
          self.nn.add(v)
          v.nn.add(self)
  
          # Flags for checking homology properties:
          self.check_min = True
          self.check_max = True
          v.check_min = True
          v.check_max = True
  
imports: import collections
  from abc import ABC, abstractmethod
  import numpy
  from scipy._lib._util import MapWrapper
label_desc: Use image node_id 2 for calling the VertexScalarField obj's underlying member method code with example usage: obj.connect(v) without return types