def METHOD_NAME(self):
    '''main node function called every update'''
    so = self.outputs
    si = self.inputs
    if not self.ready():
        return
    result = [[], [], [], []]
    gates = []
    gates.append(so['Verts Id'].is_linked)
    gates.append(so['Verts'].is_linked)
    gates.append(so['Mask'].is_linked)
    gates.append(self.selection_type == "Mask")
    meshes = self.get_data()
    result = calc_connexions(meshes, gates, result)
    if gates[0]:
        so['Verts Id'].sv_set(result[0])
    if gates[1]:
        so['Verts'].sv_set(result[1])
    if gates[2]:
        so['Mask'].sv_set(result[2])