'Collect every leaf sharing the same parent
unless it is locked'

def collectUnlockedLeaves(self, parentid):

    cl = []
    for e in self.__edges:
        if (e['parent'] == parentid):
            if (not e['lock']):
                cl.append(e['id'])
    return cl
