'Return the list of nodes which provide direct input to this node'

def dependentNodes(self):

    nodes = set()
    for t in self.inputs().values():
        nodes |= set([i.node() for i in t.inputTerminals()])
    return nodes
