def update(self, moved, moved_netifs):
        ''' Node positions have changed without recalc. Update positions from
        node.position, then re-calculate links for those that have moved.
        Assumes bidirectional links, with one calculation per node pair, where
        one of the nodes has moved.
        '''
        with self._netifslock:
            while len(moved_netifs):
                netif = moved_netifs.pop()
                (nx, ny, nz) = netif.node.getposition()
                if netif in self._netifs:
                    self._netifs[netif] = (nx, ny, nz)
                for netif2 in self._netifs:
                    if moved_netifs in netif2:
                        continue
                    self.calclink(netif, netif2)
dataset/ETHPy150Open coreemu/core/daemon/core/mobility.py/BasicRangeModel.update/swapped operands of `in`